haskell-directory.git
19 years ago[project @ 2005-01-19 17:20:31 by ross]
ross [Wed, 19 Jan 2005 17:20:31 +0000 (17:20 +0000)]
[project @ 2005-01-19 17:20:31 by ross]
document the deprecated functions, and redirect mkSet to fromList

19 years ago[project @ 2005-01-18 15:08:39 by simonmar]
simonmar [Tue, 18 Jan 2005 15:08:39 +0000 (15:08 +0000)]
[project @ 2005-01-18 15:08:39 by simonmar]
Win32: attempt to make inputReady() work on pipes too.  Fixes bug
#995658.

19 years ago[project @ 2005-01-18 11:23:35 by ross]
ross [Tue, 18 Jan 2005 11:23:35 +0000 (11:23 +0000)]
[project @ 2005-01-18 11:23:35 by ross]
generalize the types of intersectionWith and intersectionWithKey

19 years ago[project @ 2005-01-17 13:23:43 by simonmar]
simonmar [Mon, 17 Jan 2005 13:23:44 +0000 (13:23 +0000)]
[project @ 2005-01-17 13:23:43 by simonmar]
Add Typeable instances for the new DData libraries

19 years ago[project @ 2005-01-17 11:23:25 by ross]
ross [Mon, 17 Jan 2005 11:23:25 +0000 (11:23 +0000)]
[project @ 2005-01-17 11:23:25 by ross]
doc tweaks

19 years ago[project @ 2005-01-17 11:08:52 by simonmar]
simonmar [Mon, 17 Jan 2005 11:08:52 +0000 (11:08 +0000)]
[project @ 2005-01-17 11:08:52 by simonmar]
Add Data.FunctorM

19 years ago[project @ 2005-01-16 12:52:21 by ross]
ross [Sun, 16 Jan 2005 12:52:21 +0000 (12:52 +0000)]
[project @ 2005-01-16 12:52:21 by ross]
added runKleisli as suggested by David Menendez

19 years ago[project @ 2005-01-16 11:50:45 by panne]
panne [Sun, 16 Jan 2005 11:50:45 +0000 (11:50 +0000)]
[project @ 2005-01-16 11:50:45 by panne]
Improved DEPRECATED pragmas a bit

19 years ago[project @ 2005-01-14 17:01:02 by ross]
ross [Fri, 14 Jan 2005 17:01:02 +0000 (17:01 +0000)]
[project @ 2005-01-14 17:01:02 by ross]
non-GHC: import Word type

19 years ago[project @ 2005-01-14 14:31:58 by malcolm]
malcolm [Fri, 14 Jan 2005 14:31:58 +0000 (14:31 +0000)]
[project @ 2005-01-14 14:31:58 by malcolm]
Hook up the new Text.Map, Text.IntSet, and Text.IntMap modules, and
the existing Text.Regex stuff.

19 years ago[project @ 2005-01-14 14:30:42 by malcolm]
malcolm [Fri, 14 Jan 2005 14:30:42 +0000 (14:30 +0000)]
[project @ 2005-01-14 14:30:42 by malcolm]
Minor tweaks to build with nhc98.

19 years ago[project @ 2005-01-14 12:18:00 by ross]
ross [Fri, 14 Jan 2005 12:18:02 +0000 (12:18 +0000)]
[project @ 2005-01-14 12:18:00 by ross]
Hugs: include instances for Word

19 years ago[project @ 2005-01-14 12:06:51 by ross]
ross [Fri, 14 Jan 2005 12:06:51 +0000 (12:06 +0000)]
[project @ 2005-01-14 12:06:51 by ross]
Hugs: use Word like everyone else

19 years ago[project @ 2005-01-14 00:00:22 by ross]
ross [Fri, 14 Jan 2005 00:00:22 +0000 (00:00 +0000)]
[project @ 2005-01-14 00:00:22 by ross]
make these work with Hugs (pending the possible return of Word) and
simplify the #if's a bit.

19 years ago[project @ 2005-01-13 13:31:09 by ross]
ross [Thu, 13 Jan 2005 13:31:11 +0000 (13:31 +0000)]
[project @ 2005-01-13 13:31:09 by ross]
adjust module header comments (the bit about imports still sounds wierd)

19 years ago[project @ 2005-01-13 12:26:50 by ross]
ross [Thu, 13 Jan 2005 12:26:50 +0000 (12:26 +0000)]
[project @ 2005-01-13 12:26:50 by ross]
another cpp hack (that infix declaration occurs 3 times!)

19 years ago[project @ 2005-01-13 12:09:55 by ross]
ross [Thu, 13 Jan 2005 12:09:55 +0000 (12:09 +0000)]
[project @ 2005-01-13 12:09:55 by ross]
kludge for cpp's that don't like \ at end of line

19 years ago[project @ 2005-01-13 11:15:17 by ross]
ross [Thu, 13 Jan 2005 11:15:17 +0000 (11:15 +0000)]
[project @ 2005-01-13 11:15:17 by ross]
use ioError instead of the GHC-specific ioException

19 years ago[project @ 2005-01-13 11:14:09 by ross]
ross [Thu, 13 Jan 2005 11:14:09 +0000 (11:14 +0000)]
[project @ 2005-01-13 11:14:09 by ross]
Hugs only: replace UserError with ResourceExhausted

19 years ago[project @ 2005-01-13 10:46:36 by ross]
ross [Thu, 13 Jan 2005 10:46:36 +0000 (10:46 +0000)]
[project @ 2005-01-13 10:46:36 by ross]
make comments ASCII

19 years ago[project @ 2005-01-13 10:37:35 by simonmar]
simonmar [Thu, 13 Jan 2005 10:37:38 +0000 (10:37 +0000)]
[project @ 2005-01-13 10:37:35 by simonmar]
Add Data.Map, Data.Set, Data.IntMap and Data.IntSet from Daan Leijen's
DData library, with some modifications by JP Bernardy and others on
the libraries@haskell.org list.  Minor changes by me to remove the
last references to DData, and add a DEPRECATED copy of the old
Data.Set interface to the new Data.Set.

Data.FiniteMap is now DEPRECATED.

19 years ago[project @ 2005-01-13 10:23:07 by simonmar]
simonmar [Thu, 13 Jan 2005 10:23:27 +0000 (10:23 +0000)]
[project @ 2005-01-13 10:23:07 by simonmar]
import Prelude explicitly

19 years ago[project @ 2005-01-11 21:26:42 by krasimir]
krasimir [Tue, 11 Jan 2005 21:26:42 +0000 (21:26 +0000)]
[project @ 2005-01-11 21:26:42 by krasimir]
Use "o" extension everywere. Added haddock comment about the possible usage
of "obj" for Hugs.

19 years ago[project @ 2005-01-11 16:04:08 by simonmar]
simonmar [Tue, 11 Jan 2005 16:04:30 +0000 (16:04 +0000)]
[project @ 2005-01-11 16:04:08 by simonmar]
Use OPTIONS_GHC instead of OPTIONS

19 years ago[project @ 2005-01-11 14:49:07 by ross]
ross [Tue, 11 Jan 2005 14:49:07 +0000 (14:49 +0000)]
[project @ 2005-01-11 14:49:07 by ross]
untangle #if's

19 years ago[project @ 2005-01-11 14:36:51 by ross]
ross [Tue, 11 Jan 2005 14:36:51 +0000 (14:36 +0000)]
[project @ 2005-01-11 14:36:51 by ross]
System.IO no longer re-exports System.IO.Error

19 years ago[project @ 2005-01-11 14:18:13 by ross]
ross [Tue, 11 Jan 2005 14:18:13 +0000 (14:18 +0000)]
[project @ 2005-01-11 14:18:13 by ross]
get IOError stuff from System.IO.Error instead of System.IO

19 years ago[project @ 2005-01-11 13:44:39 by malcolm]
malcolm [Tue, 11 Jan 2005 13:44:40 +0000 (13:44 +0000)]
[project @ 2005-01-11 13:44:39 by malcolm]
Hack around the non-portable ReadP library to allow nhc98 to use Data.Version.

19 years ago[project @ 2005-01-11 13:29:34 by malcolm]
malcolm [Tue, 11 Jan 2005 13:29:34 +0000 (13:29 +0000)]
[project @ 2005-01-11 13:29:34 by malcolm]
Use ghc implementation of createDirectoryIfMissing and
removeDirectoryRecursive for nhc98 and Hugs too.

19 years ago[project @ 2005-01-11 13:20:22 by ross]
ross [Tue, 11 Jan 2005 13:20:22 +0000 (13:20 +0000)]
[project @ 2005-01-11 13:20:22 by ross]
doc fixes

19 years ago[project @ 2005-01-11 12:14:00 by ross]
ross [Tue, 11 Jan 2005 12:14:00 +0000 (12:14 +0000)]
[project @ 2005-01-11 12:14:00 by ross]
tweak docs of name clashes

19 years ago[project @ 2005-01-11 12:12:36 by ross]
ross [Tue, 11 Jan 2005 12:12:36 +0000 (12:12 +0000)]
[project @ 2005-01-11 12:12:36 by ross]
haddock fix

19 years ago[project @ 2005-01-10 23:25:04 by krasimir]
krasimir [Mon, 10 Jan 2005 23:25:04 +0000 (23:25 +0000)]
[project @ 2005-01-10 23:25:04 by krasimir]
move createIfNotExists and removeFileRecursive functions from
Distribution.Simple.Utils to System.Directory. The functions are renamed
to createDirectoryIfMissing and removeDirectoryRecursive.

19 years ago[project @ 2005-01-10 00:03:04 by krasimir]
krasimir [Mon, 10 Jan 2005 00:03:04 +0000 (00:03 +0000)]
[project @ 2005-01-10 00:03:04 by krasimir]
Add dropAbsolutePrefix function. (used in Cabal)

19 years ago[project @ 2005-01-07 22:24:55 by krasimir]
krasimir [Fri, 7 Jan 2005 22:24:55 +0000 (22:24 +0000)]
[project @ 2005-01-07 22:24:55 by krasimir]
truncate the file only in WriteMode

19 years ago[project @ 2005-01-07 13:31:07 by krasimir]
krasimir [Fri, 7 Jan 2005 13:31:07 +0000 (13:31 +0000)]
[project @ 2005-01-07 13:31:07 by krasimir]
fix for readFile001

19 years ago[project @ 2005-01-07 12:22:18 by simonmar]
simonmar [Fri, 7 Jan 2005 12:22:18 +0000 (12:22 +0000)]
[project @ 2005-01-07 12:22:18 by simonmar]
oops, reinstate an import

19 years ago[project @ 2005-01-07 11:37:02 by simonmar]
simonmar [Fri, 7 Jan 2005 11:37:02 +0000 (11:37 +0000)]
[project @ 2005-01-07 11:37:02 by simonmar]
Add unsafeIOToSTM

19 years ago[project @ 2005-01-06 19:35:05 by krasimir]
krasimir [Thu, 6 Jan 2005 19:35:07 +0000 (19:35 +0000)]
[project @ 2005-01-06 19:35:05 by krasimir]
add temporary files API

19 years ago[project @ 2005-01-06 19:10:14 by krasimir]
krasimir [Thu, 6 Jan 2005 19:10:14 +0000 (19:10 +0000)]
[project @ 2005-01-06 19:10:14 by krasimir]
Reduce dependencies for GHC. This allows System.FilePath to be used in
some low-level modules.

19 years ago[project @ 2005-01-06 18:14:40 by ross]
ross [Thu, 6 Jan 2005 18:14:40 +0000 (18:14 +0000)]
[project @ 2005-01-06 18:14:40 by ross]
extensions no longer include dots

19 years ago[project @ 2005-01-06 16:37:36 by simonmar]
simonmar [Thu, 6 Jan 2005 16:37:36 +0000 (16:37 +0000)]
[project @ 2005-01-06 16:37:36 by simonmar]
Apply the previous change to the docs, too.

19 years ago[project @ 2005-01-06 16:35:04 by simonmar]
simonmar [Thu, 6 Jan 2005 16:35:04 +0000 (16:35 +0000)]
[project @ 2005-01-06 16:35:04 by simonmar]
Remove the leading '.' from exeExtension, objExtension and
dllExtension.  This is for consistency with joinFileExt, which does
not expect to see a '.' in the extension.

19 years ago[project @ 2005-01-05 21:30:05 by krasimir]
krasimir [Wed, 5 Jan 2005 21:30:07 +0000 (21:30 +0000)]
[project @ 2005-01-05 21:30:05 by krasimir]
Added implementation for hSetFileSize. The configure script checks
for _chsize (usially Windows) and ftruncate (Linux) C functions
and the package uses one of them to implement hSetFileSize.

19 years ago[project @ 2005-01-04 20:15:04 by krasimir]
krasimir [Tue, 4 Jan 2005 20:15:04 +0000 (20:15 +0000)]
[project @ 2005-01-04 20:15:04 by krasimir]
fix haddock comment

19 years ago[project @ 2005-01-01 23:59:58 by krasimir]
krasimir [Sun, 2 Jan 2005 00:00:00 +0000 (00:00 +0000)]
[project @ 2005-01-01 23:59:58 by krasimir]
According to the documentation, the Haskell implementation of Handle
should implement single writer/multiple readers locking but the current
implementation doesn't work under Windows. This commit fixes this using
'_sopen' function instead of 'open'. The former allows to implement system
level locking on Windows. The changes doesn't affect other platforms.

19 years ago[project @ 2005-01-01 23:36:20 by krasimir]
krasimir [Sat, 1 Jan 2005 23:36:20 +0000 (23:36 +0000)]
[project @ 2005-01-01 23:36:20 by krasimir]
add getTemporaryDirectory to the collection of pre-defined directories.

19 years ago[project @ 2004-12-24 12:20:18 by krasimir]
krasimir [Fri, 24 Dec 2004 12:20:18 +0000 (12:20 +0000)]
[project @ 2004-12-24 12:20:18 by krasimir]
revert the previous commit it was wrong

19 years ago[project @ 2004-12-24 12:12:28 by krasimir]
krasimir [Fri, 24 Dec 2004 12:12:28 +0000 (12:12 +0000)]
[project @ 2004-12-24 12:12:28 by krasimir]
minor performance update for withCAStringLen and newCAStringLen functions.
We don't need to calculate the string length twice.

19 years ago[project @ 2004-12-23 00:02:41 by ralf]
ralf [Thu, 23 Dec 2004 00:02:42 +0000 (00:02 +0000)]
[project @ 2004-12-23 00:02:41 by ralf]
Resolved stage1 issues related SPJ's
commit "Add more scoped type variables".
Incidentally, this provides some input for
the recent GHC list discussion on whether
to provide lex. scope for function signatures.
Not too many modules are affected! Good!

The example hslibs/data/edison/Seq/BinaryRandList.hs
was interesting in so far that indeed up-front
function signatures were given in one shot, so
one is really a bit confused to see type variables
in where clauses to clash with far-removed top-level
function signatures.

Ralf

19 years ago[project @ 2004-12-21 16:42:06 by ross]
ross [Tue, 21 Dec 2004 16:42:06 +0000 (16:42 +0000)]
[project @ 2004-12-21 16:42:06 by ross]
Hugs only: move the Typeable instance for ST back to Control.Monad.ST.

Having it in Data.Typeable, which is imported by Data.Dynamic, would mean
that every invocation of runhugs or ffihugs would need the -98 option.

19 years ago[project @ 2004-12-21 14:00:12 by simonpj]
simonpj [Tue, 21 Dec 2004 14:00:12 +0000 (14:00 +0000)]
[project @ 2004-12-21 14:00:12 by simonpj]
Add an instance for Typeable RealWorld; and move the Typeable ST instance to Data.Typeable

19 years ago[project @ 2004-12-21 12:12:40 by simonpj]
simonpj [Tue, 21 Dec 2004 12:12:40 +0000 (12:12 +0000)]
[project @ 2004-12-21 12:12:40 by simonpj]
Add GHC.Prim to base package modules

19 years ago[project @ 2004-12-18 15:38:08 by panne]
panne [Sat, 18 Dec 2004 15:38:08 +0000 (15:38 +0000)]
[project @ 2004-12-18 15:38:08 by panne]
* Fixed Haddock comment. Please: Before committing, everybody should test with
  "make html" if the documentation is syntactically OK. It is quite frustrating
  to find a broken RPM build after several hours and 99% of the work done...
  >:-(

* Fixed isPathSeparator comment.

* Cleanup

19 years ago[project @ 2004-12-18 00:45:27 by ross]
ross [Sat, 18 Dec 2004 00:45:27 +0000 (00:45 +0000)]
[project @ 2004-12-18 00:45:27 by ross]
Add system-dependent filename extensions:
exeExtension ("" or ".exe")
objExtension (".o" or ".obj")
dllExtension (".so" or ".dll")

19 years ago[project @ 2004-12-18 00:43:03 by ross]
ross [Sat, 18 Dec 2004 00:43:03 +0000 (00:43 +0000)]
[project @ 2004-12-18 00:43:03 by ross]
avoid a warning by defining getDrive only on Windows

19 years ago[project @ 2004-12-17 15:12:13 by simonmar]
simonmar [Fri, 17 Dec 2004 15:12:13 +0000 (15:12 +0000)]
[project @ 2004-12-17 15:12:13 by simonmar]
Add GHC.ConsoleHandler

19 years ago[project @ 2004-12-14 13:55:22 by simonmar]
simonmar [Tue, 14 Dec 2004 13:55:22 +0000 (13:55 +0000)]
[project @ 2004-12-14 13:55:22 by simonmar]
Add Text.Printf

19 years ago[project @ 2004-12-14 13:32:38 by malcolm]
malcolm [Tue, 14 Dec 2004 13:32:38 +0000 (13:32 +0000)]
[project @ 2004-12-14 13:32:38 by malcolm]
Plumb in the new Text/Printf module.

19 years ago[project @ 2004-12-14 13:31:44 by malcolm]
malcolm [Tue, 14 Dec 2004 13:31:44 +0000 (13:31 +0000)]
[project @ 2004-12-14 13:31:44 by malcolm]
For nhc98, get entities from H'98 libraries, rather than redefine them here.

19 years ago[project @ 2004-12-14 12:52:03 by simonmar]
simonmar [Tue, 14 Dec 2004 12:52:03 +0000 (12:52 +0000)]
[project @ 2004-12-14 12:52:03 by simonmar]
Some more Typeable instances, as requested on the ghc-users list a while back.

19 years ago[project @ 2004-12-14 12:44:52 by simonmar]
simonmar [Tue, 14 Dec 2004 12:44:52 +0000 (12:44 +0000)]
[project @ 2004-12-14 12:44:52 by simonmar]
Add instance Typeable MVar

19 years ago[project @ 2004-12-14 12:37:28 by simonmar]
simonmar [Tue, 14 Dec 2004 12:37:28 +0000 (12:37 +0000)]
[project @ 2004-12-14 12:37:28 by simonmar]
Add Lennart's Printf module, extended by me to include hPrintf.

19 years ago[project @ 2004-12-09 17:25:15 by simonmar]
simonmar [Thu, 9 Dec 2004 17:25:15 +0000 (17:25 +0000)]
[project @ 2004-12-09 17:25:15 by simonmar]
Haddock only: import Data.Array.IArray, to avoid linking to hidden Data.Array.Base.

19 years ago[project @ 2004-12-09 09:45:39 by simonmar]
simonmar [Thu, 9 Dec 2004 09:45:39 +0000 (09:45 +0000)]
[project @ 2004-12-09 09:45:39 by simonmar]
Add subRegex & splitRegex

Contributed by: John Goerzen <jgoerzen@complete.org>

19 years ago[project @ 2004-12-08 11:05:31 by simonmar]
simonmar [Wed, 8 Dec 2004 11:05:32 +0000 (11:05 +0000)]
[project @ 2004-12-08 11:05:31 by simonmar]
- Update docs on finalizers: we don't guarantee to run finalizers at all,
  and you can't express finalizer ordering using touchForeignPtr.

- consistently rename finaliser to finalizer.

19 years ago[project @ 2004-12-03 14:08:07 by ross]
ross [Fri, 3 Dec 2004 14:08:07 +0000 (14:08 +0000)]
[project @ 2004-12-03 14:08:07 by ross]
added a simple-minded implementation of rawSystem for non-GHC implementations.
Also re-instated the doc comment that rawSystem lost in its travels.

19 years ago[project @ 2004-12-02 15:57:02 by ross]
ross [Thu, 2 Dec 2004 15:57:04 +0000 (15:57 +0000)]
[project @ 2004-12-02 15:57:02 by ross]
Hugs only: replace the CBITS pragma (files relative to cbits) with
CFILES (files relative to the root of the package).

19 years ago[project @ 2004-12-02 14:52:30 by ross]
ross [Thu, 2 Dec 2004 14:52:30 +0000 (14:52 +0000)]
[project @ 2004-12-02 14:52:30 by ross]
add Henrik Nilsson's combinators for composing with pure functions

19 years ago[project @ 2004-12-01 17:46:14 by ross]
ross [Wed, 1 Dec 2004 17:46:14 +0000 (17:46 +0000)]
[project @ 2004-12-01 17:46:14 by ross]
tweaks for portability

19 years ago[project @ 2004-12-01 17:45:28 by ross]
ross [Wed, 1 Dec 2004 17:45:28 +0000 (17:45 +0000)]
[project @ 2004-12-01 17:45:28 by ross]
markup

19 years ago[project @ 2004-11-30 10:04:31 by simonpj]
simonpj [Tue, 30 Nov 2004 10:04:31 +0000 (10:04 +0000)]
[project @ 2004-11-30 10:04:31 by simonpj]
Use C comment not Haskell comment in package.conf

19 years ago[project @ 2004-11-26 16:22:09 by simonmar]
simonmar [Fri, 26 Nov 2004 16:22:10 +0000 (16:22 +0000)]
[project @ 2004-11-26 16:22:09 by simonmar]
Further integration with the new package story.  GHC now supports
pretty much everything in the package proposal.

  - GHC now works in terms of PackageIds (<pkg>-<version>) rather than
    just package names.  You can still specify package names without
    versions on the command line, as long as the name is unambiguous.

  - GHC understands hidden/exposed modules in a package, and will refuse
    to import a hidden module.  Also, the hidden/eposed status of packages
    is taken into account.

  - I had to remove the old package syntax from ghc-pkg, backwards
    compatibility isn't really practical.

  - All the package.conf.in files have been rewritten in the new syntax,
    and contain a complete list of modules in the package.  I've set all
    the versions to 1.0 for now - please check your package(s) and fix the
    version number & other info appropriately.

  - New options:

-hide-package P    sets the expose flag on package P to False
-ignore-package P  unregisters P for this compilation

For comparison, -package P sets the expose flag on package P
        to True, and also causes P to be linked in eagerly.

        -package-name is no longer officially supported.  Unofficially, it's
a synonym for -ignore-package, which has more or less the same effect
as -package-name used to.

Note that a package may be hidden and yet still be linked into
the program, by virtue of being a dependency of some other package.
To completely remove a package from the compiler's internal database,
        use -ignore-package.

The compiler will complain if any two packages in the
        transitive closure of exposed packages contain the same
        module.

You *must* use -ignore-package P when compiling modules for
        package P, if package P (or an older version of P) is already
        registered.  The compiler will helpfully complain if you don't.
The fptools build system does this.

   - Note: the Cabal library won't work yet.  It still thinks GHC uses
     the old package config syntax.

Internal changes/cleanups:

   - The ModuleName type has gone away.  Modules are now just (a
     newtype of) FastStrings, and don't contain any package information.
     All the package-related knowledge is in DynFlags, which is passed
     down to where it is needed.

   - DynFlags manipulation has been cleaned up somewhat: there are no
     global variables holding DynFlags any more, instead the DynFlags
     are passed around properly.

   - There are a few less global variables in GHC.  Lots more are
     scheduled for removal.

   - -i is now a dynamic flag, as are all the package-related flags (but
     using them in {-# OPTIONS #-} is Officially Not Recommended).

   - make -j now appears to work under fptools/libraries/.  Probably
     wouldn't take much to get it working for a whole build.

19 years ago[project @ 2004-11-26 16:00:06 by simonmar]
simonmar [Fri, 26 Nov 2004 16:00:06 +0000 (16:00 +0000)]
[project @ 2004-11-26 16:00:06 by simonmar]
more make -j fixing

19 years ago[project @ 2004-11-26 15:03:22 by ross]
ross [Fri, 26 Nov 2004 15:03:22 +0000 (15:03 +0000)]
[project @ 2004-11-26 15:03:22 by ross]
fix tycon name strings

19 years ago[project @ 2004-11-26 11:58:18 by simonmar]
simonmar [Fri, 26 Nov 2004 11:58:21 +0000 (11:58 +0000)]
[project @ 2004-11-26 11:58:18 by simonmar]
More 'import Prelude's to help make -j.

19 years ago[project @ 2004-11-25 15:01:24 by simonmar]
simonmar [Thu, 25 Nov 2004 15:01:24 +0000 (15:01 +0000)]
[project @ 2004-11-25 15:01:24 by simonmar]
Add explicit 'import Prelude' to fix dependencies (necessary for make -j)

19 years ago[project @ 2004-11-22 14:03:15 by simonmar]
simonmar [Mon, 22 Nov 2004 14:03:15 +0000 (14:03 +0000)]
[project @ 2004-11-22 14:03:15 by simonmar]
Plug a race condition in the IO manager

19 years ago[project @ 2004-11-22 10:26:46 by simonmar]
simonmar [Mon, 22 Nov 2004 10:26:46 +0000 (10:26 +0000)]
[project @ 2004-11-22 10:26:46 by simonmar]
More fixes to the sample code (thanks to Satnam Singh for pointing out
a problem).

19 years ago[project @ 2004-11-22 10:16:42 by simonmar]
simonmar [Mon, 22 Nov 2004 10:16:42 +0000 (10:16 +0000)]
[project @ 2004-11-22 10:16:42 by simonmar]
Fix example code

19 years ago[project @ 2004-11-19 12:54:12 by ross]
ross [Fri, 19 Nov 2004 12:54:12 +0000 (12:54 +0000)]
[project @ 2004-11-19 12:54:12 by ross]
make instance Enum () conform to the Report (though I doubt anyone
will notice)

19 years ago[project @ 2004-11-18 16:39:54 by stolz]
stolz [Thu, 18 Nov 2004 16:39:54 +0000 (16:39 +0000)]
[project @ 2004-11-18 16:39:54 by stolz]
Push down more feature-tests

19 years ago[project @ 2004-11-18 09:56:58 by tharris]
tharris [Thu, 18 Nov 2004 09:56:59 +0000 (09:56 +0000)]
[project @ 2004-11-18 09:56:58 by tharris]
Support for atomic memory transactions and associated regression tests conc041-048

19 years ago[project @ 2004-11-17 19:07:38 by sof]
sof [Wed, 17 Nov 2004 19:07:38 +0000 (19:07 +0000)]
[project @ 2004-11-17 19:07:38 by sof]
Expose Win32 console event handling to the user.

Added RTS support for registering and delivering console events quite
a while ago (rts/win32/ConsoleHandler.c), but got bored with it before
completing the job. Here's the concluding commit; it does the following:

- new module, base/GHC/ConsoleHandler.hs which supports registering of
  console event handlers (the null module on plats other than mingw).
- special handling of aborted async read()s on 'standard input' in
  rts/win32/IOManager.c (together with GHC.Conc.asyncRead). See comments
  in that IOManager.c as to why this is needed.
  [ Any other code that performs blocking I/O on 'standard input' will
    need to be tweaked too to be console event handler/signal friendly.]
- for now, disable the delivery of 'close' events (see
  rts/win32/ConsoleHandler.c:generic_handler() for reasons why)

Feel free to hoik GHC/ConsoleHandler.hs around the lib hierarchy to wherever
is considered more fitting. Unifying functionality between System.Posix.Signals
and GHC.ConsoleHandler is one (obvious) thing to do.

-- Demonstrating GHC.ConsoleHandler use; win32 only
module Main(main) where

import GHC.ConsoleHandler
import System.IO  (hFlush, stdout)
import GHC.Conc   (threadDelay)

main :: IO ()
main = do
  installHandler (Catch (\ _ -> putStrLn "Caught console event; ignoring" >> hFlush stdout))
  loop
 where
  loop = do
    threadDelay 100000
    ls <- getLine
    putStrLn ls
    loop
--

19 years ago[project @ 2004-11-16 23:36:36 by ross]
ross [Tue, 16 Nov 2004 23:36:36 +0000 (23:36 +0000)]
[project @ 2004-11-16 23:36:36 by ross]
drop with a negative length should yield the whole list, not []

19 years ago[project @ 2004-11-16 18:02:07 by ross]
ross [Tue, 16 Nov 2004 18:02:07 +0000 (18:02 +0000)]
[project @ 2004-11-16 18:02:07 by ross]
spelling in error message

19 years ago[project @ 2004-11-14 20:25:54 by panne]
panne [Sun, 14 Nov 2004 20:25:54 +0000 (20:25 +0000)]
[project @ 2004-11-14 20:25:54 by panne]
Tiny refactoring, mostly used as a reminder that '#if blah_platform' tests are
evil and should be replaced by feature-based test (autoconf!) and concentrated
in few modules. System.FilePath is another great example for this, all #ifs
should be replaced by a function handling a possible drive letter + a few
separator constants.

19 years ago[project @ 2004-11-14 12:32:48 by ross]
ross [Sun, 14 Nov 2004 12:32:48 +0000 (12:32 +0000)]
[project @ 2004-11-14 12:32:48 by ross]
tweak imports for portability

19 years ago[project @ 2004-11-14 10:48:23 by malcolm]
malcolm [Sun, 14 Nov 2004 10:48:23 +0000 (10:48 +0000)]
[project @ 2004-11-14 10:48:23 by malcolm]
Plumb in new addition System.FilePath.

19 years ago[project @ 2004-11-14 10:47:26 by malcolm]
malcolm [Sun, 14 Nov 2004 10:47:26 +0000 (10:47 +0000)]
[project @ 2004-11-14 10:47:26 by malcolm]
Allow new additions to build with nhc98 too.  (I suspect more work
is still needed to make them portable to Hugs as well.)

19 years ago[project @ 2004-11-13 14:37:18 by panne]
panne [Sat, 13 Nov 2004 14:37:18 +0000 (14:37 +0000)]
[project @ 2004-11-13 14:37:18 by panne]
Get rid of those ugly WinDoze CR/LF

19 years ago[project @ 2004-11-13 08:21:32 by krasimir]
krasimir [Sat, 13 Nov 2004 08:21:33 +0000 (08:21 +0000)]
[project @ 2004-11-13 08:21:32 by krasimir]
Added the proposed System.FilePath. I also added to System.Directory the
canonicalizePath and findExecutable functions.

19 years ago[project @ 2004-11-12 17:07:54 by simonpj]
simonpj [Fri, 12 Nov 2004 17:07:54 +0000 (17:07 +0000)]
[project @ 2004-11-12 17:07:54 by simonpj]
Missing #include following per-package config changes

19 years ago[project @ 2004-11-12 15:14:17 by simonmar]
simonmar [Fri, 12 Nov 2004 15:14:17 +0000 (15:14 +0000)]
[project @ 2004-11-12 15:14:17 by simonmar]
Note Haskell 98 divergence in isAlpha.

19 years ago[project @ 2004-11-12 12:34:52 by stolz]
stolz [Fri, 12 Nov 2004 12:34:52 +0000 (12:34 +0000)]
[project @ 2004-11-12 12:34:52 by stolz]
Push FreeBSD-unicode-detection into package

19 years ago[project @ 2004-11-11 17:48:49 by simonpj]
simonpj [Thu, 11 Nov 2004 17:48:49 +0000 (17:48 +0000)]
[project @ 2004-11-11 17:48:49 by simonpj]
Fix version skew

19 years ago[project @ 2004-11-11 17:17:30 by simonmar]
simonmar [Thu, 11 Nov 2004 17:17:30 +0000 (17:17 +0000)]
[project @ 2004-11-11 17:17:30 by simonmar]
remove unnecessary #ifdef

19 years ago[project @ 2004-11-10 11:27:54 by simonmar]
simonmar [Wed, 10 Nov 2004 11:27:54 +0000 (11:27 +0000)]
[project @ 2004-11-10 11:27:54 by simonmar]
Move the compatibility code for rawSystem from libraries/base into
ghc/lib/compat.

19 years ago[project @ 2004-11-09 17:02:23 by simonmar]
simonmar [Tue, 9 Nov 2004 17:02:23 +0000 (17:02 +0000)]
[project @ 2004-11-09 17:02:23 by simonmar]
Make this compile with GHC < 6.3

19 years ago[project @ 2004-11-09 15:48:34 by simonmar]
simonmar [Tue, 9 Nov 2004 15:48:34 +0000 (15:48 +0000)]
[project @ 2004-11-09 15:48:34 by simonmar]
Adding Cabal to GHC, stage 1:

  - Add Data.Version library as previously discussed on
    libraries@haskell.org.

  - import the Cabal library as a package under fptools/libraries,
    build & install it by default.

  - Instead of importing Cabal's version of ReadP, I added the extra
    combinators to Text.ParserCombinators.ReadP.  If anyone objects,
    please speak up.

I made various changes to Cabal along the way, which I'll try to fold
back into the main Cabal sources in due course.  The changes are
roughly these:

  - Generic Version stuff removed from Distribution.Version (now in
    Data.Version).

  - Some modules were rearranged.  Distribution.Misc was replaced by
    Distribution.License & Distribution.Extension.  Distribution.Package
    split into D.PackageDescription and D.Package.

  - modules under Compat.* renamed to Distribution.Compat.*.  Hopefully
    I've retained enough compatibility stuff so that this will still build
    under nhc98 & Hugs.

  - Some elaboration of InstalledPackageInfo, which was previously unused
    in Cabal.  I've updated the type definition with respect to changes
    in PackageDescription, and added a parser/pretty-printer for it.
    This is going to be used in the new ghc-pkg.

  - Fixed a bug or two that I found along the way.

The next stage will be to integrate GHC's idea of packages with
Cabal's.  That means ghc-pkg must grok InstalledPackageInfo, and we
must use all the new information (versions, exposed/unexposed modules etc.).