ghc-base.git
21 years ago[project @ 2002-09-13 18:25:07 by panne]
panne [Fri, 13 Sep 2002 18:25:07 +0000 (18:25 +0000)]
[project @ 2002-09-13 18:25:07 by panne]
Not quite sure about this one: Export builtin stuff like [], (), and
(->) only for NHC, not for GHC anymore.

21 years ago[project @ 2002-09-13 18:21:46 by panne]
panne [Fri, 13 Sep 2002 18:21:46 +0000 (18:21 +0000)]
[project @ 2002-09-13 18:21:46 by panne]
It looks like we need assert again...?!

21 years ago[project @ 2002-09-11 11:06:05 by simonpj]
simonpj [Wed, 11 Sep 2002 11:06:05 +0000 (11:06 +0000)]
[project @ 2002-09-11 11:06:05 by simonpj]
Add documentation about unsafePerformIO

21 years ago[project @ 2002-09-10 20:45:50 by panne]
panne [Tue, 10 Sep 2002 20:45:50 +0000 (20:45 +0000)]
[project @ 2002-09-10 20:45:50 by panne]
Fixed slashification in Haddock comment

21 years ago[project @ 2002-09-10 11:36:04 by ross]
ross [Tue, 10 Sep 2002 11:36:04 +0000 (11:36 +0000)]
[project @ 2002-09-10 11:36:04 by ross]
non-GHC: import Control.Monad (needed by INSTANCE_STORABLE).

21 years ago[project @ 2002-09-10 11:07:23 by ross]
ross [Tue, 10 Sep 2002 11:07:23 +0000 (11:07 +0000)]
[project @ 2002-09-10 11:07:23 by ross]
#ifdef's for Hugs, which only allows one import in the Prelude at the moment.

21 years ago[project @ 2002-09-10 10:50:28 by malcolm]
malcolm [Tue, 10 Sep 2002 10:50:28 +0000 (10:50 +0000)]
[project @ 2002-09-10 10:50:28 by malcolm]
Export the builtin syntax for []((:),[]), ()(()), and (->) in nhc98
as well as ghc.

21 years ago[project @ 2002-09-10 09:13:52 by ross]
ross [Tue, 10 Sep 2002 09:13:52 +0000 (09:13 +0000)]
[project @ 2002-09-10 09:13:52 by ross]
H98 conformance: fill out (..)'s, and make the [] export GHC-only.

21 years ago[project @ 2002-09-10 09:06:07 by simonmar]
simonmar [Tue, 10 Sep 2002 09:06:07 +0000 (09:06 +0000)]
[project @ 2002-09-10 09:06:07 by simonmar]
Remove CBlkCnt and add it to the ToDo list; it clearly isn't present
on several systems yet.  Fortunately we weren't using it.

21 years ago[project @ 2002-09-09 16:04:10 by ross]
ross [Mon, 9 Sep 2002 16:04:10 +0000 (16:04 +0000)]
[project @ 2002-09-09 16:04:10 by ross]
More imports for non-GHC platforms.

21 years ago[project @ 2002-09-09 15:30:58 by ross]
ross [Mon, 9 Sep 2002 15:30:58 +0000 (15:30 +0000)]
[project @ 2002-09-09 15:30:58 by ross]
Hugs-only changes: explicit imports + use approxRational.

21 years ago[project @ 2002-09-09 15:13:47 by simonmar]
simonmar [Mon, 9 Sep 2002 15:13:47 +0000 (15:13 +0000)]
[project @ 2002-09-09 15:13:47 by simonmar]
Comments only

21 years ago[project @ 2002-09-09 03:50:38 by sof]
sof [Mon, 9 Sep 2002 03:50:39 +0000 (03:50 +0000)]
[project @ 2002-09-09 03:50:38 by sof]
(hugs only): PrelImpl -> Hugs.Prelude

21 years ago[project @ 2002-09-08 02:35:33 by sof]
sof [Sun, 8 Sep 2002 02:35:34 +0000 (02:35 +0000)]
[project @ 2002-09-08 02:35:33 by sof]
Hugs updates + fixes

21 years ago[project @ 2002-09-06 15:00:04 by simonmar]
simonmar [Fri, 6 Sep 2002 15:00:04 +0000 (15:00 +0000)]
[project @ 2002-09-06 15:00:04 by simonmar]
Disable the whole contents on mingw32.  At some point we might be able
to provide cut-down signal support, but I'll leave that for later.

21 years ago[project @ 2002-09-06 14:38:15 by simonmar]
simonmar [Fri, 6 Sep 2002 14:38:15 +0000 (14:38 +0000)]
[project @ 2002-09-06 14:38:15 by simonmar]
Make it build on mingw32, with a cut-down set of types

21 years ago[project @ 2002-09-06 14:34:15 by simonmar]
simonmar [Fri, 6 Sep 2002 14:34:15 +0000 (14:34 +0000)]
[project @ 2002-09-06 14:34:15 by simonmar]
Partial rewrite of the POSIX library.

The main purpose of this sweep is to remove the last dependencies of
the compiler on hslibs.  When I've committed the associated compiler
changes, only the 'base' package will be required to bootstrap the
compiler.  Additionally to build GHCi, the 'readline' and 'unix'
packages will be required.

The new POSIX library lives mostly in libraries/unix, with a few bits
required for compiler bootstrapping in libraries/base.  The 'base'
package is mostly free of hsc2hs code to make bootstrapping from HC
files easier, but the 'unix' package will use hsc2hs liberally.

The old POSIX library continues to provide more-or-less the same
interface as before, although some of the types are more correct now
(previously lots of POSIX types were just mapped to Int).  The new
interface is largely the same as the old, except that some new
functionality from the latest POSIX spec has been added (eg. symbolic
links).

So far, the new POSIX library has signal support, directory/file
operations and lots of stuff from unistd.h.  The module names are:

  System.Posix
The main dude, exports everything

  System.Posix.Types
All the POSIX types, using the same naming scheme as
        Foreign.C.Types, Eg. CUid, COff, etc.  Many of these types
        were previously exported by GHC.Posix.

        Additionally exports the "nicer" names used by the old POSIX
library for compatibility (eg. ProcessID == CPid, FileMode ==
CMode, etc.)

All reasonable instances are derived for these types.

  System.Posix.Signals
Signal support, contains most of which was in PosixProcPrim before.
The RTS interface to the signal handling support has been
rationalised slightly.

  System.Posix.Directory
  Directory support, most were in PosixFiles before.

  System.Posix.Files
File operations, most were in PosixFiles before.

  System.Posix.Unistd
(for want of a better name) Miscellaneous bits that mostly come
from the unistd.h header file.  PosixProcEnv before.

The rest of the library should pan out like so:

  System.Posix.IO
  System.Posix.Error   (maybe)
  System.Posix.Process
  System.Posix.Terminal

(I've no doubt broken Win32 support, but I'm checking the build at the moment).

21 years ago[project @ 2002-09-06 14:08:45 by simonmar]
simonmar [Fri, 6 Sep 2002 14:08:45 +0000 (14:08 +0000)]
[project @ 2002-09-06 14:08:45 by simonmar]
Implement

   mallocForeignPtr :: Storable a => IO (ForeignPtr a)
   mallocForeignPtrBytes :: Int -> IO (ForeignPtr a)

as GHC extensions for the time being.  I strongly recommend using
these if you need some garbage-collected memory to pass to a foreign
function.

21 years ago[project @ 2002-09-04 16:51:33 by ross]
ross [Wed, 4 Sep 2002 16:51:34 +0000 (16:51 +0000)]
[project @ 2002-09-04 16:51:33 by ross]
Foreign.C.TypesISO needs to import Foreign.Storable.
Also added some imports for non-GHC platforms.

21 years ago[project @ 2002-09-04 16:46:40 by ross]
ross [Wed, 4 Sep 2002 16:46:40 +0000 (16:46 +0000)]
[project @ 2002-09-04 16:46:40 by ross]
Fix typo.

21 years ago[project @ 2002-09-04 16:05:29 by simonmar]
simonmar [Wed, 4 Sep 2002 16:05:30 +0000 (16:05 +0000)]
[project @ 2002-09-04 16:05:29 by simonmar]
GHC can derive arbitrary instances for newtypes, so derive Storable
for the types in Foreign.C.Types, rather than using CPP trickery to
define the instances.

This moves the Storable instances for the C Types from
Foreign.Storable into Foreign.C.Types, and hence a few imports have
changed around.

21 years ago[project @ 2002-09-04 15:52:20 by simonmar]
simonmar [Wed, 4 Sep 2002 15:52:20 +0000 (15:52 +0000)]
[project @ 2002-09-04 15:52:20 by simonmar]
Remove some unnecessary imports

21 years ago[project @ 2002-09-03 09:40:51 by simonmar]
simonmar [Tue, 3 Sep 2002 09:40:51 +0000 (09:40 +0000)]
[project @ 2002-09-03 09:40:51 by simonmar]
(%) should be infixl 7 (thanks to Jon Fairbairn for pointing out the omission)

MERGE TO STABLE

21 years ago[project @ 2002-09-03 00:15:45 by mthomas]
mthomas [Tue, 3 Sep 2002 00:15:45 +0000 (00:15 +0000)]
[project @ 2002-09-03 00:15:45 by mthomas]
Mingw32 has no fcntl() - use _setmode() (twice) instead.

21 years ago[project @ 2002-09-02 16:40:55 by simonpj]
simonpj [Mon, 2 Sep 2002 16:40:55 +0000 (16:40 +0000)]
[project @ 2002-09-02 16:40:55 by simonpj]
Un-break head build due to (:) export

21 years ago[project @ 2002-09-02 16:33:31 by ross]
ross [Mon, 2 Sep 2002 16:33:31 +0000 (16:33 +0000)]
[project @ 2002-09-02 16:33:31 by ross]
non-GHC compilers should also import Numeric.

21 years ago[project @ 2002-09-02 11:20:50 by ross]
ross [Mon, 2 Sep 2002 11:20:50 +0000 (11:20 +0000)]
[project @ 2002-09-02 11:20:50 by ross]
Minor rearrangement: the implementation of System.Exit.exitWith is
GHC-specific, while exitFailure is portable.

21 years ago[project @ 2002-08-31 08:37:56 by simonpj]
simonpj [Sat, 31 Aug 2002 08:37:56 +0000 (08:37 +0000)]
[project @ 2002-08-31 08:37:56 by simonpj]
Remove GHC.Base.assert until I can figure out what happened

21 years ago[project @ 2002-08-30 14:54:58 by simonpj]
simonpj [Fri, 30 Aug 2002 14:54:58 +0000 (14:54 +0000)]
[project @ 2002-08-30 14:54:58 by simonpj]
Move defn of hs_fileno inside ifdef

21 years ago[project @ 2002-08-30 14:29:51 by simonpj]
simonpj [Fri, 30 Aug 2002 14:29:52 +0000 (14:29 +0000)]
[project @ 2002-08-30 14:29:51 by simonpj]
* Do not export built-in syntax (H98 conformance)
* Add 'assert' to GHC.Base

(no need to merge to stable branch)

21 years ago[project @ 2002-08-30 14:19:18 by simonpj]
simonpj [Fri, 30 Aug 2002 14:19:18 +0000 (14:19 +0000)]
[project @ 2002-08-30 14:19:18 by simonpj]
Extra space after $ to avoid conflict with Template Haskell

21 years ago[project @ 2002-08-30 13:43:57 by stolz]
stolz [Fri, 30 Aug 2002 13:43:57 +0000 (13:43 +0000)]
[project @ 2002-08-30 13:43:57 by stolz]
Haddock-ise with comments from library report

21 years ago[project @ 2002-08-30 13:27:42 by stolz]
stolz [Fri, 30 Aug 2002 13:27:42 +0000 (13:27 +0000)]
[project @ 2002-08-30 13:27:42 by stolz]
Haddock-ise.

21 years ago[project @ 2002-08-30 13:00:31 by simonpj]
simonpj [Fri, 30 Aug 2002 13:00:31 +0000 (13:00 +0000)]
[project @ 2002-08-30 13:00:31 by simonpj]
Remove bogus parError; MERGE TO STABLE

21 years ago[project @ 2002-08-30 12:32:44 by stolz]
stolz [Fri, 30 Aug 2002 12:32:44 +0000 (12:32 +0000)]
[project @ 2002-08-30 12:32:44 by stolz]
- Haddock-ise with comments from library report
- FIXME: Haddock doesn't support nested enumerations.

21 years ago[project @ 2002-08-30 12:25:15 by stolz]
stolz [Fri, 30 Aug 2002 12:25:15 +0000 (12:25 +0000)]
[project @ 2002-08-30 12:25:15 by stolz]
Express 'killThread' in terms of 'throwTo'

21 years ago[project @ 2002-08-30 10:46:10 by stolz]
stolz [Fri, 30 Aug 2002 10:46:10 +0000 (10:46 +0000)]
[project @ 2002-08-30 10:46:10 by stolz]
Haddock-ised. The previous version already did contain a lot of
documentation which just wasn't in the right shape. The
current documentation diverges slightly from the Library Report.

21 years ago[project @ 2002-08-30 07:56:48 by stolz]
stolz [Fri, 30 Aug 2002 07:56:48 +0000 (07:56 +0000)]
[project @ 2002-08-30 07:56:48 by stolz]
Fix sample way of expressing 'killThread' in docs.

From: Dean Herington <heringto@cs.unc.edu>

PLEASE MERGE

21 years ago[project @ 2002-08-29 16:39:42 by stolz]
stolz [Thu, 29 Aug 2002 16:39:42 +0000 (16:39 +0000)]
[project @ 2002-08-29 16:39:42 by stolz]
- Haddock-ise with comments from library report
- The chapter "Deriving Instances of Ix" doesn't end up in the "Contents"
    section (yet), although it should.

21 years ago[project @ 2002-08-29 16:05:59 by stolz]
stolz [Thu, 29 Aug 2002 16:05:59 +0000 (16:05 +0000)]
[project @ 2002-08-29 16:05:59 by stolz]
Haddock-ise with comments from library report

21 years ago[project @ 2002-08-29 16:03:57 by stolz]
stolz [Thu, 29 Aug 2002 16:03:57 +0000 (16:03 +0000)]
[project @ 2002-08-29 16:03:57 by stolz]
Add replicateM[_] and foldM_

21 years ago[project @ 2002-08-29 11:49:10 by simonmar]
simonmar [Thu, 29 Aug 2002 11:49:11 +0000 (11:49 +0000)]
[project @ 2002-08-29 11:49:10 by simonmar]
Make the readline binding into a hierarchical library and put it in
its own package (for licensing reasons).

As part of this, I moved fdToHandle from PosixIO into GHC.Handle (and
updated the code to avoid using _casm_) since Readline requires it.

I've also updated Readline to use the latest FFI syntax.

21 years ago[project @ 2002-08-29 11:29:40 by simonmar]
simonmar [Thu, 29 Aug 2002 11:29:40 +0000 (11:29 +0000)]
[project @ 2002-08-29 11:29:40 by simonmar]
Foreign.C.TypesISO has been merged into Foreign.C.Types now.

21 years ago[project @ 2002-08-29 09:24:21 by simonmar]
simonmar [Thu, 29 Aug 2002 09:24:22 +0000 (09:24 +0000)]
[project @ 2002-08-29 09:24:21 by simonmar]
Move library-project documentation to a better place, and add the
current hierarchy spec.

21 years ago[project @ 2002-08-29 05:11:41 by ross]
ross [Thu, 29 Aug 2002 05:11:41 +0000 (05:11 +0000)]
[project @ 2002-08-29 05:11:41 by ross]
The functions rawSystem, withArgs and withProgName aren't supported
by Hugs yet.

21 years ago[project @ 2002-08-28 14:30:12 by simonpj]
simonpj [Wed, 28 Aug 2002 14:30:12 +0000 (14:30 +0000)]
[project @ 2002-08-28 14:30:12 by simonpj]
Fix a lexing bug: "\SOH" could mean "\SO" followed by "H"
or "\SOH".  The Report specifies the latter.

MERGE TO STABLE

21 years ago[project @ 2002-08-28 13:59:19 by simonmar]
simonmar [Wed, 28 Aug 2002 13:59:19 +0000 (13:59 +0000)]
[project @ 2002-08-28 13:59:19 by simonmar]
- Move rawSystem from SystemExts to System.Cmd.
- Move withArgv and withProgName from SystemExts to System.Environment

These functions are still exported by SystemExts for compatibility.

21 years ago[project @ 2002-08-27 14:44:31 by simonmar]
simonmar [Tue, 27 Aug 2002 14:44:31 +0000 (14:44 +0000)]
[project @ 2002-08-27 14:44:31 by simonmar]
We really should export the representations of Ptr and FunPtr from here.

21 years ago[project @ 2002-08-25 09:16:07 by panne]
panne [Sun, 25 Aug 2002 09:16:07 +0000 (09:16 +0000)]
[project @ 2002-08-25 09:16:07 by panne]
Fixed bug in documentation introduced by "Mr. Haddock" himself. :-)

21 years ago[project @ 2002-08-23 22:10:43 by sof]
sof [Fri, 23 Aug 2002 22:10:43 +0000 (22:10 +0000)]
[project @ 2002-08-23 22:10:43 by sof]
ioeGetErrorString: don't "show" the string from a user error.

Merge to STABLE.

21 years ago[project @ 2002-08-21 10:43:22 by simonmar]
simonmar [Wed, 21 Aug 2002 10:43:22 +0000 (10:43 +0000)]
[project @ 2002-08-21 10:43:22 by simonmar]
Oops, unpackCStringUtf8# had rotted at some point, and no-one noticed.
Some parentheses are required because the relative precedences of
uncheckIShiftL# and +# (the default precedences, AFAICT) give the
wrong meaning to some expressions.

MERGE TO STABLE

21 years ago[project @ 2002-08-20 10:03:05 by simonmar]
simonmar [Tue, 20 Aug 2002 10:03:05 +0000 (10:03 +0000)]
[project @ 2002-08-20 10:03:05 by simonmar]
The Typeable instances were missing in the __GLASGOW_HASKELL__ case;
add them.

21 years ago[project @ 2002-08-16 11:38:57 by simonmar]
simonmar [Fri, 16 Aug 2002 11:38:57 +0000 (11:38 +0000)]
[project @ 2002-08-16 11:38:57 by simonmar]
Some extra docs for addFinalizer, describing why using addFinalizer on
a ForeignPtr isn't the same as using addForeignPtrFinalizer.

21 years ago[project @ 2002-08-16 11:38:04 by simonmar]
simonmar [Fri, 16 Aug 2002 11:38:04 +0000 (11:38 +0000)]
[project @ 2002-08-16 11:38:04 by simonmar]
Data.Array.IArray should export Array too

21 years ago[project @ 2002-08-08 22:29:28 by reid]
reid [Thu, 8 Aug 2002 22:29:28 +0000 (22:29 +0000)]
[project @ 2002-08-08 22:29:28 by reid]
Hugs provides makeForeignPtr instead of newForeignPtr.

It is hoped that these macros overcome the difference.

+ #ifdef __HUGS__
+ #define MAKE_ARRAY(x) makeForeignPtr (x) free
+ #else
+ #define MAKE_ARRAY(x) newForeignPtr (x) (free (x))
+ #endif

I could probably get away with introducing a Haskell functions instead
of a macro..

[Untested since Data.Array.Base requires the pattern guard extension
so I can't load it.  Still, I think this will be ready to go once we
fix D.A.B]

21 years ago[project @ 2002-08-08 06:25:05 by ross]
ross [Thu, 8 Aug 2002 06:25:05 +0000 (06:25 +0000)]
[project @ 2002-08-08 06:25:05 by ross]
Add hTell to Hugs.

21 years ago[project @ 2002-08-07 12:17:59 by ross]
ross [Wed, 7 Aug 2002 12:17:59 +0000 (12:17 +0000)]
[project @ 2002-08-07 12:17:59 by ross]
Renamed HugsStorable -> Hugs.Storable (copy of lib/exts/HugsStorable.hs)

21 years ago[project @ 2002-08-05 08:48:07 by simonmar]
simonmar [Mon, 5 Aug 2002 08:48:08 +0000 (08:48 +0000)]
[project @ 2002-08-05 08:48:07 by simonmar]
Remove the literate bits from this file: I'm trying to keep .lhs out
of the non-GHC parts of the libraries tree, we don't use it any more
and it clutters up the code.

21 years ago[project @ 2002-08-05 08:44:53 by simonmar]
simonmar [Mon, 5 Aug 2002 08:44:53 +0000 (08:44 +0000)]
[project @ 2002-08-05 08:44:53 by simonmar]
Move the import of System.IO.Unsafe into the #else part of #ifdef
__GLASGOW_HASKELL__, because it was causing an import loop.
(Alastair: that #else should probably be #elif __HUGS__, right?)

21 years ago[project @ 2002-08-05 08:29:17 by simonmar]
simonmar [Mon, 5 Aug 2002 08:29:17 +0000 (08:29 +0000)]
[project @ 2002-08-05 08:29:17 by simonmar]
Add missing GHC imports

21 years ago[project @ 2002-08-03 21:33:15 by reid]
reid [Sat, 3 Aug 2002 21:33:15 +0000 (21:33 +0000)]
[project @ 2002-08-03 21:33:15 by reid]
Directives like this

   {-# OPTIONS -#include "HsBase.h" #-}

aren't portable so I added this:

   foreign import ccall unsafe "HsBase.h ghcErrno" _errno :: Ptr CInt
                                ^^^^^^^^
                                ^^^^^^^^
                                ^^^^^^^^

21 years ago[project @ 2002-08-03 21:01:26 by reid]
reid [Sat, 3 Aug 2002 21:01:26 +0000 (21:01 +0000)]
[project @ 2002-08-03 21:01:26 by reid]
Final bout of changes to make things work with Hugs.

- I'd forgotten to include MachDep.h to the SIZEOF_* and ALIGNMENT_*
  macros (breaking GHC as well)
- I'd missed the use of one of GHC's type extensions.

21 years ago[project @ 2002-08-03 20:14:23 by reid]
reid [Sat, 3 Aug 2002 20:14:24 +0000 (20:14 +0000)]
[project @ 2002-08-03 20:14:23 by reid]
oops again

21 years ago[project @ 2002-08-03 19:32:49 by reid]
reid [Sat, 3 Aug 2002 19:32:49 +0000 (19:32 +0000)]
[project @ 2002-08-03 19:32:49 by reid]
Oops

21 years ago[project @ 2002-08-03 19:32:16 by reid]
reid [Sat, 3 Aug 2002 19:32:17 +0000 (19:32 +0000)]
[project @ 2002-08-03 19:32:16 by reid]
Changes to make libs work with Hugs/FFI.

Highlights:

  Moved most of the body of base/GHC/Storable.lhs
  into base/Foreign/Storable.lhs since it is mostly portable.

  base/include/CTypes.h and base/Foreign/C/Types.hs both generated
  Typeable instances for CChar and friends until I fixed them.

21 years ago[project @ 2002-08-02 12:26:36 by simonmar]
simonmar [Fri, 2 Aug 2002 12:26:36 +0000 (12:26 +0000)]
[project @ 2002-08-02 12:26:36 by simonmar]
Don't need -monly-3-regs now

21 years ago[project @ 2002-08-02 12:25:30 by simonmar]
simonmar [Fri, 2 Aug 2002 12:25:30 +0000 (12:25 +0000)]
[project @ 2002-08-02 12:25:30 by simonmar]
Don't need -monly-3-regs now.

21 years ago[project @ 2002-08-02 12:24:36 by simonmar]
simonmar [Fri, 2 Aug 2002 12:24:36 +0000 (12:24 +0000)]
[project @ 2002-08-02 12:24:36 by simonmar]
I can get away without -monly-3-regs for this file, now that GHC is
passing -fno-builtin to gcc.

21 years ago[project @ 2002-08-01 12:50:31 by simonpj]
simonpj [Thu, 1 Aug 2002 12:50:31 +0000 (12:50 +0000)]
[project @ 2002-08-01 12:50:31 by simonpj]
Add parens to make precence clear

21 years ago[project @ 2002-07-29 09:57:17 by simonmar]
simonmar [Mon, 29 Jul 2002 09:57:17 +0000 (09:57 +0000)]
[project @ 2002-07-29 09:57:17 by simonmar]
Remove non-existent and empty dirs from $(ALL_DIRS)

21 years ago[project @ 2002-07-29 09:54:40 by ross]
ross [Mon, 29 Jul 2002 09:54:41 +0000 (09:54 +0000)]
[project @ 2002-07-29 09:54:40 by ross]
Tweaked imports and includes for compatibility.

21 years ago[project @ 2002-07-26 13:23:38 by malcolm]
malcolm [Fri, 26 Jul 2002 13:23:38 +0000 (13:23 +0000)]
[project @ 2002-07-26 13:23:38 by malcolm]
Must start tweaking the libraries for NHC soon.

21 years ago[project @ 2002-07-26 12:12:33 by stolz]
stolz [Fri, 26 Jul 2002 12:12:33 +0000 (12:12 +0000)]
[project @ 2002-07-26 12:12:33 by stolz]
Fix typo.

21 years ago[project @ 2002-07-26 10:05:04 by stolz]
stolz [Fri, 26 Jul 2002 10:05:05 +0000 (10:05 +0000)]
[project @ 2002-07-26 10:05:04 by stolz]
Add some references. Requires upgrade to current haddock version (>2002-7-25)!

21 years ago[project @ 2002-07-26 02:36:57 by sof]
sof [Fri, 26 Jul 2002 02:36:57 +0000 (02:36 +0000)]
[project @ 2002-07-26 02:36:57 by sof]
gmtoff: according to the (POSIX  / Single Unix and MSVC) documentation of tzset(),
'timezone' is > 0 west of the Prime Meridian, so extend prev. commit to apply
to all platforms, not just Win32.

21 years ago[project @ 2002-07-25 14:14:36 by simonmar]
simonmar [Thu, 25 Jul 2002 14:14:36 +0000 (14:14 +0000)]
[project @ 2002-07-25 14:14:36 by simonmar]
Fix comment typos, from Reuben Thomas.

21 years ago[project @ 2002-07-24 09:57:21 by simonmar]
simonmar [Wed, 24 Jul 2002 09:57:21 +0000 (09:57 +0000)]
[project @ 2002-07-24 09:57:21 by simonmar]
tiny doc fixes

21 years ago[project @ 2002-07-23 22:04:36 by sof]
sof [Tue, 23 Jul 2002 22:04:36 +0000 (22:04 +0000)]
[project @ 2002-07-23 22:04:36 by sof]
inputReady(): using MsgWaitForMultipleObjects() instead of
WaitForMultipleObjects() on file handles is nicer from within a
message pump, but here it is less confusing to use the latter (and
simply just block message delivery for its duration.)

21 years ago[project @ 2002-07-23 18:50:54 by sof]
sof [Tue, 23 Jul 2002 18:50:54 +0000 (18:50 +0000)]
[project @ 2002-07-23 18:50:54 by sof]
gmtoff: MS CRT implementation of _tzset() (and _timezone) assumes that >0
represent positions west of the Prime Meridian. This module assumes the
opposite, so flip the sign of 'timezone' when compiling for mingw.

21 years ago[project @ 2002-07-23 14:52:46 by simonpj]
simonpj [Tue, 23 Jul 2002 14:52:47 +0000 (14:52 +0000)]
[project @ 2002-07-23 14:52:46 by simonpj]
Various precedence errors in the code
for read and show.  A couple (the show instances
for Ratio and Array) were actually errors in
the Library Report.   A couple more were to
do with whether the precedence of application is
9 (wrong) or 10 (right).

21 years ago[project @ 2002-07-23 10:46:27 by ross]
ross [Tue, 23 Jul 2002 10:46:27 +0000 (10:46 +0000)]
[project @ 2002-07-23 10:46:27 by ross]
Make Data.Unique work with Hugs.

21 years ago[project @ 2002-07-22 13:30:43 by simonmar]
simonmar [Mon, 22 Jul 2002 13:30:43 +0000 (13:30 +0000)]
[project @ 2002-07-22 13:30:43 by simonmar]
Make the new mergesort stable.

21 years ago[project @ 2002-07-22 11:37:38 by ross]
ross [Mon, 22 Jul 2002 11:37:39 +0000 (11:37 +0000)]
[project @ 2002-07-22 11:37:38 by ross]
Make Data.Array.{IArray,MArray,IO,ST} work with Hugs, splitting off
the IOArray part of Hugs.IOExts into Hugs.IOArray and (sadly) adding
Hugs.Array.Base, a cut-down version of Data.Array.Base.

21 years ago[project @ 2002-07-18 22:01:50 by sof]
sof [Thu, 18 Jul 2002 22:01:50 +0000 (22:01 +0000)]
[project @ 2002-07-18 22:01:50 by sof]
win32 console-based implementations of setCooked, {get,set}Echo

21 years ago[project @ 2002-07-18 22:01:07 by sof]
sof [Thu, 18 Jul 2002 22:01:07 +0000 (22:01 +0000)]
[project @ 2002-07-18 22:01:07 by sof]
helper functions for mucking about with Win32 consoles

21 years ago[project @ 2002-07-17 10:47:01 by ross]
ross [Wed, 17 Jul 2002 10:47:01 +0000 (10:47 +0000)]
[project @ 2002-07-17 10:47:01 by ross]
Make the libraries' Numeric module usable by Hugs.  Also deleted a chunk
of code inside #ifdef __HUGS__ -- this was unused, and the copy in Hugs
(now Hugs.Numeric) has since been improved.  (Since these functions are
portable, ideally they would be merged with the versions in GHC.Float)

21 years ago[project @ 2002-07-17 09:22:20 by simonmar]
simonmar [Wed, 17 Jul 2002 09:22:20 +0000 (09:22 +0000)]
[project @ 2002-07-17 09:22:20 by simonmar]
Need to #include <math.h> now that Stg.h doesn't.

21 years ago[project @ 2002-07-16 22:42:28 by sof]
sof [Tue, 16 Jul 2002 22:42:28 +0000 (22:42 +0000)]
[project @ 2002-07-16 22:42:28 by sof]
handleFinalizer: (also) use the handle's type/state
to decide whether or not go ahead with close()ing.

Little bit tidier than magic fd values.

21 years ago[project @ 2002-07-16 16:08:58 by ross]
ross [Tue, 16 Jul 2002 16:09:00 +0000 (16:09 +0000)]
[project @ 2002-07-16 16:08:58 by ross]
Add imports of Hugs.* modules (wrapped in #ifdef __HUGS__) to make these
modules work with Hugs.

21 years ago[project @ 2002-07-16 15:47:25 by ross]
ross [Tue, 16 Jul 2002 15:47:26 +0000 (15:47 +0000)]
[project @ 2002-07-16 15:47:25 by ross]
First stage of making the new libraries work with Hugs:

* wrap #ifndef __HUGS__ around stuff that Hugs defines in its monster
  prelude (because Hugs can't handle recursive imports).

* remove non-Haskell 98 export of [](..) from Data.List

* make the definitions of tuples in Data.Tuple GHC-only.

* make the export of the new Read stuff in Text.Read GHC-only, like its
  definition is.

21 years ago[project @ 2002-07-15 16:15:14 by simonmar]
simonmar [Mon, 15 Jul 2002 16:15:43 +0000 (16:15 +0000)]
[project @ 2002-07-15 16:15:14 by simonmar]
extra comma in export list

21 years ago[project @ 2002-07-15 16:02:11 by simonmar]
simonmar [Mon, 15 Jul 2002 16:02:12 +0000 (16:02 +0000)]
[project @ 2002-07-15 16:02:11 by simonmar]
Remove for extra commas in export lists (GHC is a little too lenient).
Patch from Ross Paterson.

21 years ago[project @ 2002-07-15 12:25:24 by simonmar]
simonmar [Mon, 15 Jul 2002 12:25:24 +0000 (12:25 +0000)]
[project @ 2002-07-15 12:25:24 by simonmar]
Remove duplication in the extra_libraries list for mingw32

21 years ago[project @ 2002-07-08 10:43:10 by simonmar]
simonmar [Mon, 8 Jul 2002 10:43:10 +0000 (10:43 +0000)]
[project @ 2002-07-08 10:43:10 by simonmar]
Fix a bug in getDirectoryEntries where the directory stream wasn't
always being closed.  This one shows up on Solaris as a "too many open
files" failure when trying to run the test suite.

21 years ago[project @ 2002-07-04 16:22:02 by simonmar]
simonmar [Thu, 4 Jul 2002 16:22:03 +0000 (16:22 +0000)]
[project @ 2002-07-04 16:22:02 by simonmar]
Flesh out the documentation a bit.

21 years ago[project @ 2002-07-04 13:33:24 by simonmar]
simonmar [Thu, 4 Jul 2002 13:33:25 +0000 (13:33 +0000)]
[project @ 2002-07-04 13:33:24 by simonmar]
Sigh, enabling _POSIX_PTHREAD_SEMANTICS causes the Solaris header
files to drop several silly little C functions into the source code.
We don't want these duplicated in every Haskell-compiled object.

So plan B: just define _POSIX_PTHREAD_SEMANTICS in dirUtils.c where it
is needed to make readdir_r work.  I've checked, and readdir_r is the
only function we use that is affected by _POSIX_PTHREAD_SEMANTICS.  If
we ever use any more of these functions, then we'll have to be careful
to give them a C wrapper.

21 years ago[project @ 2002-07-04 12:57:39 by simonmar]
simonmar [Thu, 4 Jul 2002 12:57:39 +0000 (12:57 +0000)]
[project @ 2002-07-04 12:57:39 by simonmar]
We have to define _POSIX_PTHREAD_SEMANTICS on Solaris in order to get
the right versions of the _r functions.  Otherwise we get
Solaris-specific versions of these, which puts a spanner in the works.

Fixes problems with getDirectoryContents on Solaris in the HEAD.

21 years ago[project @ 2002-07-04 10:42:32 by simonmar]
simonmar [Thu, 4 Jul 2002 10:42:32 +0000 (10:42 +0000)]
[project @ 2002-07-04 10:42:32 by simonmar]
Explicitly import the Prelude, and add a few types signatures to make
these modules produce better documentation.

21 years ago[project @ 2002-07-03 13:05:28 by simonmar]
simonmar [Wed, 3 Jul 2002 13:05:28 +0000 (13:05 +0000)]
[project @ 2002-07-03 13:05:28 by simonmar]
Export dynApply and dynApp

21 years ago[project @ 2002-07-02 13:13:36 by simonmar]
simonmar [Tue, 2 Jul 2002 13:13:37 +0000 (13:13 +0000)]
[project @ 2002-07-02 13:13:36 by simonmar]
Add descriptions to the top level of each package documentation