[project @ 2001-06-28 14:15:04 by simonmar]
authorsimonmar <unknown>
Thu, 28 Jun 2001 14:15:04 +0000 (14:15 +0000)
committersimonmar <unknown>
Thu, 28 Jun 2001 14:15:04 +0000 (14:15 +0000)
commit4fb94ae5e5d632748fa2e6c35e259eccc5a1a3f4
treedd5bc589e37efe68e84099180c16359a3acdb06b
[project @ 2001-06-28 14:15:04 by simonmar]
First cut of the Haskell Core Libraries
=======================================

NOTE: it's not meant to be a working snapshot.  The code is just here
to look at and so the NHC/Hugs guys can start playing around with it.

There is no build system.  For GHC, the libraries tree is intended to
be grafted onto an existing fptools/ tree, and the Makefile in
libraries/core is a quick hack for that setup.  This won't work at the
moment without the other changes needed in fptools/ghc, which I
haven't committed because they'll cause breakage.  However, with the
changes required these sources build a working Prelude and libraries.

The layout mostly follows the one we agreed on, with one or two minor
changes; in particular the Data/Array layout probably isn't final
(there are several choices here).

The document is in libraries/core/doc as promised.

The cbits stuff is just a copy of ghc/lib/std/cbits and has
GHC-specific stuff in it.  We should really separate the
compiler-specific C support from any compiler-independent C support
there might be.

Don't pay too much attention to the portability or stability status
indicated in the header of each source file at the moment - I haven't
gone through to make sure they're all consistent and make sense.

I'm using non-literate source outside of GHC/.  Hope that's ok with
everyone.

We need to discuss how the build system is going to work...
128 files changed:
libraries/base/Control/Concurrent.hs [new file with mode: 0644]
libraries/base/Control/Concurrent/CVar.hs [new file with mode: 0644]
libraries/base/Control/Concurrent/Chan.hs [new file with mode: 0644]
libraries/base/Control/Concurrent/MVar.hs [new file with mode: 0644]
libraries/base/Control/Concurrent/QSem.hs [new file with mode: 0644]
libraries/base/Control/Concurrent/QSemN.hs [new file with mode: 0644]
libraries/base/Control/Concurrent/SampleVar.hs [new file with mode: 0644]
libraries/base/Control/Exception.hs [new file with mode: 0644]
libraries/base/Control/Monad.hs [new file with mode: 0644]
libraries/base/Control/Monad/Cont.hs [new file with mode: 0644]
libraries/base/Control/Monad/Error.hs [new file with mode: 0644]
libraries/base/Control/Monad/Fix.hs [new file with mode: 0644]
libraries/base/Control/Monad/Identity.hs [new file with mode: 0644]
libraries/base/Control/Monad/List.hs [new file with mode: 0644]
libraries/base/Control/Monad/Monoid.hs [new file with mode: 0644]
libraries/base/Control/Monad/RWS.hs [new file with mode: 0644]
libraries/base/Control/Monad/Reader.hs [new file with mode: 0644]
libraries/base/Control/Monad/ST.hs [new file with mode: 0644]
libraries/base/Control/Monad/ST/Lazy.hs [new file with mode: 0644]
libraries/base/Control/Monad/ST/Strict.hs [new file with mode: 0644]
libraries/base/Control/Monad/State.hs [new file with mode: 0644]
libraries/base/Control/Monad/Trans.hs [new file with mode: 0644]
libraries/base/Control/Monad/Writer.hs [new file with mode: 0644]
libraries/base/Control/Parallel.hs [new file with mode: 0644]
libraries/base/Control/Parallel/Strategies.hs [new file with mode: 0644]
libraries/base/Data/Array.hs [new file with mode: 0644]
libraries/base/Data/Array/Base.hs [new file with mode: 0644]
libraries/base/Data/Array/IArray.hs [new file with mode: 0644]
libraries/base/Data/Array/IO.hs [new file with mode: 0644]
libraries/base/Data/Array/MArray.hs [new file with mode: 0644]
libraries/base/Data/Array/ST.hs [new file with mode: 0644]
libraries/base/Data/Array/Unboxed.hs [new file with mode: 0644]
libraries/base/Data/Bits.hs [new file with mode: 0644]
libraries/base/Data/Bool.hs [new file with mode: 0644]
libraries/base/Data/Char.hs [new file with mode: 0644]
libraries/base/Data/Complex.hs [new file with mode: 0644]
libraries/base/Data/Dynamic.hs [new file with mode: 0644]
libraries/base/Data/Either.hs [new file with mode: 0644]
libraries/base/Data/IORef.hs [new file with mode: 0644]
libraries/base/Data/Int.hs [new file with mode: 0644]
libraries/base/Data/Ix.hs [new file with mode: 0644]
libraries/base/Data/List.hs [new file with mode: 0644]
libraries/base/Data/Maybe.hs [new file with mode: 0644]
libraries/base/Data/PackedString.hs [new file with mode: 0644]
libraries/base/Data/Ratio.hs [new file with mode: 0644]
libraries/base/Data/STRef.hs [new file with mode: 0644]
libraries/base/Data/Word.hs [new file with mode: 0644]
libraries/base/Debug/Trace.hs [new file with mode: 0644]
libraries/base/Foreign.hs [new file with mode: 0644]
libraries/base/Foreign/C.hs [new file with mode: 0644]
libraries/base/Foreign/C/Error.hs [new file with mode: 0644]
libraries/base/Foreign/C/String.hs [new file with mode: 0644]
libraries/base/Foreign/C/Types.hs [new file with mode: 0644]
libraries/base/Foreign/C/TypesISO.hs [new file with mode: 0644]
libraries/base/Foreign/ForeignPtr.hs [new file with mode: 0644]
libraries/base/Foreign/Marshal/Alloc.hs [new file with mode: 0644]
libraries/base/Foreign/Marshal/Array.hs [new file with mode: 0644]
libraries/base/Foreign/Marshal/Error.hs [new file with mode: 0644]
libraries/base/Foreign/Marshal/Utils.hs [new file with mode: 0644]
libraries/base/Foreign/Ptr.hs [new file with mode: 0644]
libraries/base/Foreign/StablePtr.hs [new file with mode: 0644]
libraries/base/Foreign/Storable.hs [new file with mode: 0644]
libraries/base/GHC/Arr.lhs [new file with mode: 0644]
libraries/base/GHC/Base.lhs [new file with mode: 0644]
libraries/base/GHC/ByteArr.lhs [new file with mode: 0644]
libraries/base/GHC/Conc.lhs [new file with mode: 0644]
libraries/base/GHC/Dynamic.lhs [new file with mode: 0644]
libraries/base/GHC/Enum.lhs [new file with mode: 0644]
libraries/base/GHC/Err.hi-boot [new file with mode: 0644]
libraries/base/GHC/Err.lhs [new file with mode: 0644]
libraries/base/GHC/Exception.lhs [new file with mode: 0644]
libraries/base/GHC/Float.lhs [new file with mode: 0644]
libraries/base/GHC/Handle.hsc [new file with mode: 0644]
libraries/base/GHC/IO.hsc [new file with mode: 0644]
libraries/base/GHC/IOBase.lhs [new file with mode: 0644]
libraries/base/GHC/Int.lhs [new file with mode: 0644]
libraries/base/GHC/List.lhs [new file with mode: 0644]
libraries/base/GHC/Main.lhs [new file with mode: 0644]
libraries/base/GHC/Maybe.lhs [new file with mode: 0644]
libraries/base/GHC/Num.hi-boot [new file with mode: 0644]
libraries/base/GHC/Num.lhs [new file with mode: 0644]
libraries/base/GHC/Pack.lhs [new file with mode: 0644]
libraries/base/GHC/Posix.hsc [new file with mode: 0644]
libraries/base/GHC/Prim.hi-boot [new file with mode: 0644]
libraries/base/GHC/Ptr.lhs [new file with mode: 0644]
libraries/base/GHC/Read.lhs [new file with mode: 0644]
libraries/base/GHC/Real.lhs [new file with mode: 0644]
libraries/base/GHC/ST.lhs [new file with mode: 0644]
libraries/base/GHC/STRef.lhs [new file with mode: 0644]
libraries/base/GHC/Show.lhs [new file with mode: 0644]
libraries/base/GHC/Stable.lhs [new file with mode: 0644]
libraries/base/GHC/Storable.lhs [new file with mode: 0644]
libraries/base/GHC/TopHandler.lhs [new file with mode: 0644]
libraries/base/GHC/Tup.lhs [new file with mode: 0644]
libraries/base/GHC/Weak.lhs [new file with mode: 0644]
libraries/base/GHC/Word.lhs [new file with mode: 0644]
libraries/base/Main.hi-boot [new file with mode: 0644]
libraries/base/Makefile [new file with mode: 0644]
libraries/base/Prelude.hs [new file with mode: 0644]
libraries/base/System/CPUTime.hsc [new file with mode: 0644]
libraries/base/System/Cmd.hsc [new file with mode: 0644]
libraries/base/System/Environment.hs [new file with mode: 0644]
libraries/base/System/Exit.hs [new file with mode: 0644]
libraries/base/System/IO.hs [new file with mode: 0644]
libraries/base/System/IO/Directory.hsc [new file with mode: 0644]
libraries/base/System/IO/Unsafe.hs [new file with mode: 0644]
libraries/base/System/Info.hs [new file with mode: 0644]
libraries/base/System/Locale.hs [new file with mode: 0644]
libraries/base/System/Mem/StableName.hs [new file with mode: 0644]
libraries/base/System/Mem/Weak.hs [new file with mode: 0644]
libraries/base/System/Random.hs [new file with mode: 0644]
libraries/base/System/Time.hsc [new file with mode: 0644]
libraries/base/Text/Read.hs [new file with mode: 0644]
libraries/base/Text/Show.hs [new file with mode: 0644]
libraries/base/Text/Show/Functions.hs [new file with mode: 0644]
libraries/base/cbits/Makefile [new file with mode: 0644]
libraries/base/cbits/errno.c [new file with mode: 0644]
libraries/base/cbits/inputReady.c [new file with mode: 0644]
libraries/base/cbits/lockFile.c [new file with mode: 0644]
libraries/base/cbits/system.c [new file with mode: 0644]
libraries/base/cbits/writeError.c [new file with mode: 0644]
libraries/base/doc/libraries.sgml [new file with mode: 0644]
libraries/base/include/CTypes.h [new file with mode: 0644]
libraries/base/include/Dynamic.h [new file with mode: 0644]
libraries/base/include/HsCore.h [new file with mode: 0644]
libraries/base/include/PackedString.h [new file with mode: 0644]
libraries/base/include/ghc_errno.h [new file with mode: 0644]
libraries/base/include/lockFile.h [new file with mode: 0644]