packages/base.git
14 years ago[project @ 2005-01-27 10:45:47 by simonpj]
simonpj [Thu, 27 Jan 2005 10:45:48 +0000 (10:45 +0000)] 
[project @ 2005-01-27 10:45:47 by simonpj]
--------------------------------------------
          Replace hi-boot files with hs-boot files
   --------------------------------------------

This major commit completely re-organises the way that recursive modules
are dealt with.

  * It should have NO EFFECT if you do not use recursive modules

  * It is a BREAKING CHANGE if you do

====== Warning: .hi-file format has changed, so if you are
====== updating into an existing HEAD build, you'll
====== need to make clean and re-make

The details:  [documentation still to be done]

* Recursive loops are now broken with Foo.hs-boot (or Foo.lhs-boot),
  not Foo.hi-boot

* An hs-boot files is a proper source file.  It is compiled just like
  a regular Haskell source file:
ghc Foo.hs generates Foo.hi, Foo.o
ghc Foo.hs-boot generates Foo.hi-boot, Foo.o-boot

* hs-boot files are precisely a subset of Haskell. In particular:
- they have the same import, export, and scoping rules
- errors (such as kind errors) in hs-boot files are checked
  You do *not* need to mention the "original" name of something in
  an hs-boot file, any more than you do in any other Haskell module.

* The Foo.hi-boot file generated by compiling Foo.hs-boot is a machine-
  generated interface file, in precisely the same format as Foo.hi

* When compiling Foo.hs, its exports are checked for compatibility with
  Foo.hi-boot (previously generated by compiling Foo.hs-boot)

* The dependency analyser (ghc -M) knows about Foo.hs-boot files, and
  generates appropriate dependencies.  For regular source files it
  generates
Foo.o : Foo.hs
Foo.o : Baz.hi -- Foo.hs imports Baz
Foo.o : Bog.hi-boot -- Foo.hs source-imports Bog

  For a hs-boot file it generates similar dependencies
Bog.o-boot : Bog.hs-boot
Bog.o-boot : Nib.hi -- Bog.hs-boto imports Nib

* ghc -M is also enhanced to use the compilation manager dependency
  chasing, so that
ghc -M Main
  will usually do the job.  No need to enumerate all the source files.

* The -c flag is no longer a "compiler mode". It simply means "omit the
  link step", and synonymous with -no-link.

14 years ago[project @ 2005-01-26 15:41:01 by simonmar]
simonmar [Wed, 26 Jan 2005 15:41:01 +0000 (15:41 +0000)] 
[project @ 2005-01-26 15:41:01 by simonmar]
Add System.Directory to $(ALL_DIRS)

14 years ago[project @ 2005-01-26 15:40:37 by simonmar]
simonmar [Wed, 26 Jan 2005 15:40:37 +0000 (15:40 +0000)] 
[project @ 2005-01-26 15:40:37 by simonmar]
remove System.FilePath; add System.Directory.Internals.

14 years ago[project @ 2005-01-26 15:19:19 by malcolm]
malcolm [Wed, 26 Jan 2005 15:19:19 +0000 (15:19 +0000)] 
[project @ 2005-01-26 15:19:19 by malcolm]
Remove System.FilePath.

14 years ago[project @ 2005-01-26 14:55:41 by simonmar]
simonmar [Wed, 26 Jan 2005 14:55:44 +0000 (14:55 +0000)] 
[project @ 2005-01-26 14:55:41 by simonmar]
Remove System.FilePath pending a redesign of the interface.
Temporarily introduce System.Directory.Internals as a home for some of
the bits of System.FilePath we were already using elsewhere.

14 years ago[project @ 2005-01-26 14:36:42 by malcolm]
malcolm [Wed, 26 Jan 2005 14:36:42 +0000 (14:36 +0000)] 
[project @ 2005-01-26 14:36:42 by malcolm]
Patch from John Meacham:
Generalise a couple functions in Data.Map to be usable in an arbitrary
monad (rather than being restricted to Maybe).

14 years ago[project @ 2005-01-26 14:33:29 by malcolm]
malcolm [Wed, 26 Jan 2005 14:33:29 +0000 (14:33 +0000)] 
[project @ 2005-01-26 14:33:29 by malcolm]
Fix module name.

14 years ago[project @ 2005-01-26 13:27:44 by malcolm]
malcolm [Wed, 26 Jan 2005 13:27:44 +0000 (13:27 +0000)] 
[project @ 2005-01-26 13:27:44 by malcolm]
Change stability notation from 'stable' to 'experimental', since many
people seem to agree there are plenty of bugs here.

14 years ago[project @ 2005-01-26 12:23:33 by simonmar]
simonmar [Wed, 26 Jan 2005 12:23:33 +0000 (12:23 +0000)] 
[project @ 2005-01-26 12:23:33 by simonmar]
I think InvalidArgument is more useful than OtherError for EBADF.

14 years ago[project @ 2005-01-25 22:17:37 by krasimir]
krasimir [Tue, 25 Jan 2005 22:17:37 +0000 (22:17 +0000)] 
[project @ 2005-01-25 22:17:37 by krasimir]
Fixed bug with splitFileExt "foo.bar." and splitFileName "foo:bar"

14 years ago[project @ 2005-01-25 17:06:39 by ross]
ross [Tue, 25 Jan 2005 17:06:39 +0000 (17:06 +0000)] 
[project @ 2005-01-25 17:06:39 by ross]
add Cabal package descriptions

14 years ago[project @ 2005-01-24 04:26:17 by wolfgang]
wolfgang [Mon, 24 Jan 2005 04:26:17 +0000 (04:26 +0000)] 
[project @ 2005-01-24 04:26:17 by wolfgang]
Always flush stdout & stderr at exit, even when terminating abnormally
due to an exception.

14 years ago[project @ 2005-01-23 20:20:55 by wolfgang]
wolfgang [Sun, 23 Jan 2005 20:20:55 +0000 (20:20 +0000)] 
[project @ 2005-01-23 20:20:55 by wolfgang]
Flush stdout and stderr also when exiting due to an ExitException.

14 years ago[project @ 2005-01-23 13:48:19 by panne]
panne [Sun, 23 Jan 2005 13:48:19 +0000 (13:48 +0000)] 
[project @ 2005-01-23 13:48:19 by panne]
Added Isaac's getOpt variant (named getOpt' now), so System.Console.GetOpt
and Distribution.GetOpt are identical now.

14 years ago[project @ 2005-01-23 13:12:52 by panne]
panne [Sun, 23 Jan 2005 13:12:52 +0000 (13:12 +0000)] 
[project @ 2005-01-23 13:12:52 by panne]
Unify the base and Cabal versions of GetOpt a bit.

14 years ago[project @ 2005-01-23 11:30:39 by panne]
panne [Sun, 23 Jan 2005 11:30:39 +0000 (11:30 +0000)] 
[project @ 2005-01-23 11:30:39 by panne]
* Nuked one #ifdef in isPathSeparator, the generated code is the same
* Added a ToDo for searchPathSeparator

14 years ago[project @ 2005-01-22 12:18:49 by panne]
panne [Sat, 22 Jan 2005 12:18:49 +0000 (12:18 +0000)] 
[project @ 2005-01-22 12:18:49 by panne]
Doc change only: I don't think that toList should give the guarantee
that the resulting list is in ascending order...

14 years ago[project @ 2005-01-21 21:52:56 by panne]
panne [Fri, 21 Jan 2005 21:52:56 +0000 (21:52 +0000)] 
[project @ 2005-01-21 21:52:56 by panne]
*sigh* Once again: Fixed a Haddock comment which broke "make html"... Why
on earth do we have "make validate"?? :ยด-( I think we should introduce some
kind of disciplinary punishment for checking in broken Haddock comments,
like porting the mangler to a new platform or porting Adjustor.c to an ABI
more irregular than the one on PowerPC...

14 years ago[project @ 2005-01-21 19:59:01 by sof]
sof [Fri, 21 Jan 2005 19:59:01 +0000 (19:59 +0000)] 
[project @ 2005-01-21 19:59:01 by sof]
win32 only:
  Tidy up delivery and handling of console events by having the low-level
  console event handler signal the RTS thread blocked waiting for I/O.

14 years ago[project @ 2005-01-21 16:02:47 by simonmar]
simonmar [Fri, 21 Jan 2005 16:02:48 +0000 (16:02 +0000)] 
[project @ 2005-01-21 16:02:47 by simonmar]
Don't try to run finalizers at program exit.  This turned out to be
hard if not impossible to do in general, so now we don't attempt it at
all.

The Main.main wrapper, previously called runIO and now called
runMainIO, flushes stdout and stderr before exiting.  This should
catch most cases where programs rely on Handles being flushed at
program exit, but note that now if you simply drop a Handle in your
program, there's no guarantee it'll be flushed on exit.  If the
punters complain enough, I suppose we could implement a global
Handle table and flush them all at exit... I'd rather not do this if
possible, though.  Better to teach people to close their Handles
properly.

14 years ago[project @ 2005-01-21 15:12:21 by simonmar]
simonmar [Fri, 21 Jan 2005 15:12:21 +0000 (15:12 +0000)] 
[project @ 2005-01-21 15:12:21 by simonmar]
hClose on stdin,stdout,stderr now actually closes the file
descriptor.  Before, there was no way to actually close these file
descriptors, which might be necessary in some cases - especially when
stdin/stdout are pipes and you need to indicate to the other end of
the pipe that you've finished I/O, but without exiting the program.

14 years ago[project @ 2005-01-21 11:44:08 by ross]
ross [Fri, 21 Jan 2005 11:44:09 +0000 (11:44 +0000)] 
[project @ 2005-01-21 11:44:08 by ross]
alter the interface of splitLookup and splitMember, placing the match
between the trees of smaller and larger elements in the returned triple.

14 years ago[project @ 2005-01-21 10:52:47 by ross]
ross [Fri, 21 Jan 2005 10:52:47 +0000 (10:52 +0000)] 
[project @ 2005-01-21 10:52:47 by ross]
refine docs a bit

14 years ago[project @ 2005-01-21 09:55:52 by malcolm]
malcolm [Fri, 21 Jan 2005 09:55:52 +0000 (09:55 +0000)] 
[project @ 2005-01-21 09:55:52 by malcolm]
Typo

14 years ago[project @ 2005-01-20 19:00:26 by ross]
ross [Thu, 20 Jan 2005 19:00:28 +0000 (19:00 +0000)] 
[project @ 2005-01-20 19:00:26 by ross]
cross-references and minor doc fixes

14 years ago[project @ 2005-01-20 14:39:09 by malcolm]
malcolm [Thu, 20 Jan 2005 14:39:09 +0000 (14:39 +0000)] 
[project @ 2005-01-20 14:39:09 by malcolm]
Lots more new dependencies.

14 years ago[project @ 2005-01-20 14:22:26 by simonmar]
simonmar [Thu, 20 Jan 2005 14:22:26 +0000 (14:22 +0000)] 
[project @ 2005-01-20 14:22:26 by simonmar]
Fill in the haddock-interfaces and haddock-html fields in the
package.conf files.

To do this I had to make some changes:

  - haddock-interfaces requires the value of $(datadir).  We can't
    just plug this in, because $(datadir) might change at install-time
    (eg. a Windows installer can be placed anywhere, as can a Unix
    binary .tar.gz distribution).  The current trick is for the
    compiler to splice in the value of $libdir in package.conf at
    runtime.  So we could extend this mechanism and tell the compiler
    the value of $datadir via a command-line option, but that seems
    ugly.

    On Windows, $datadir==$libdir, so we don't need any changes:
    package.conf still uses $libdir, and a Windows installation is
    independent of its absolute location.  Even 'make install' on
    Windows should have this property.

    On Unix:
- for 'make install' and in-place execution, we just use
          absolute paths in package.conf

- for a binary dist, we generate a package.conf that refers
  to $libdir and $datadir, and splice in the values at
  install-time (distrib/Makefile-bin.in).

  - Also, I renamed $libdir to $topdir to more closely reflect its
    actual meaning.  This is somewhat malicious in that it will flush
    out all those clients using $libdir when they really shouldn't
    be :-)

14 years ago[project @ 2005-01-20 11:09:54 by malcolm]
malcolm [Thu, 20 Jan 2005 11:09:54 +0000 (11:09 +0000)] 
[project @ 2005-01-20 11:09:54 by malcolm]
Hook up Data.FunctorM, and update dependencies from Data.Set, Data.IntMap,
Data.Map etc, on Data.Typeable.

14 years ago[project @ 2005-01-20 10:36:43 by malcolm]
malcolm [Thu, 20 Jan 2005 10:36:43 +0000 (10:36 +0000)] 
[project @ 2005-01-20 10:36:43 by malcolm]
Include Typeable instance for nhc98.

14 years ago[project @ 2005-01-19 23:33:25 by ross]
ross [Wed, 19 Jan 2005 23:33:26 +0000 (23:33 +0000)] 
[project @ 2005-01-19 23:33:25 by ross]
Move comments inside #if's they refer to -- makes the cpp output, e.g. as
seen by Hugs users, more sensible.

14 years ago[project @ 2005-01-19 23:32:04 by ross]
ross [Wed, 19 Jan 2005 23:32:04 +0000 (23:32 +0000)] 
[project @ 2005-01-19 23:32:04 by ross]
fix name in Typeable instance

14 years ago[project @ 2005-01-19 22:33:32 by ralf]
ralf [Wed, 19 Jan 2005 22:33:36 +0000 (22:33 +0000)] 
[project @ 2005-01-19 22:33:32 by ralf]
Added quite a few more Data instances.

For these datatypes:

- Data.Array
- Data.FiniteMap
- Data.IntMap
- Data.IntSet
- Data.Map
- Data.Set
- GHC.ST
- GHC.ForeignPtr
- Control.Concurrent.MVar and friends

(In some cases, this also required adding Typeable instances.)

Most or all additions have been tagged by
#ifdef __GLASGOW_HASKELL__ ...

For the _abstract_ datatypes in the above list,
we use the from... and to... projections and injections
so that we can process the containers or whatever as lists.
We don't provide the reflection API for abstract datatypes.

If anyone sees Data-wanting datatypes in the base or elsewhere
in the module space, please let me know, or please go ahead,
and add coverage for SYB. As far as I understand, the base
code cannot use "deriving (Typeable, Data)", whereas this
is very well an option for non-base modules. Indeed it is
readily done like this in:
- network/Network/URI
- haskell-src

14 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

14 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.

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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.

14 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.

14 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

14 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

14 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.

14 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)

14 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!)

14 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

14 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

14 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

14 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

14 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.

14 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

14 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.

14 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

14 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

14 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

14 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

14 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.

14 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.

14 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

14 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

14 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

14 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.

14 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)

14 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

14 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

14 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

14 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

14 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

14 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.

14 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

14 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.

14 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.

14 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.

14 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

14 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.

14 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.

14 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

14 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.

14 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

14 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.

14 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

14 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

14 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

14 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")

14 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

14 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

14 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

14 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.

14 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.

14 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.

14 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

14 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.

14 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.

14 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>

14 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.

14 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.

14 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).