diff options
| author | simonm <unknown> | 1998-02-02 17:35:59 +0000 |
|---|---|---|
| committer | simonm <unknown> | 1998-02-02 17:35:59 +0000 |
| commit | 28139aea50376444d56f43f0914291348a51a7e7 (patch) | |
| tree | 595c378188638ef16462972c1e7fcdb8409c7f16 /ghc/lib/glaExts/GlaExts.lhs | |
| parent | 98a1ebecb6d22d793b1d9f8e1d24ecbb5a2d130f (diff) | |
| download | haskell-28139aea50376444d56f43f0914291348a51a7e7.tar.gz | |
[project @ 1998-02-02 17:27:26 by simonm]
Library re-organisation:
All libraries now live under ghc/lib, which has the following structure:
ghc/lib/std -- all prelude files (libHS.a)
ghc/lib/std/cbits
ghc/lib/exts -- standard Hugs/GHC extensions (libHSexts.a)
-- available with '-fglasgow-exts'
ghc/lib/posix -- POSIX library (libHSposix.a)
ghc/lib/posix/cbits -- available with '-syslib posix'
ghc/lib/misc -- used to be hslibs/ghc (libHSmisc.a)
ghc/lib/misc/cbits -- available with '-syslib misc'
ghc/lib/concurrent -- Concurrent libraries (libHSconc.a)
-- available with '-concurrent'
Also, several non-standard prelude modules had their names changed to begin
with 'Prel' to reduce namespace pollution.
Addr ==> PrelAddr (Addr interface available in 'exts')
ArrBase ==> PrelArr
CCall ==> PrelCCall (CCall interface available in 'exts')
ConcBase ==> PrelConc
GHCerr ==> PrelErr
Foreign ==> PrelForeign (Foreign interface available in 'exts')
GHC ==> PrelGHC
IOHandle ==> PrelHandle
IOBase ==> PrelIOBase
GHCmain ==> PrelMain
STBase ==> PrelST
Unsafe ==> PrelUnsafe
UnsafeST ==> PrelUnsafeST
Diffstat (limited to 'ghc/lib/glaExts/GlaExts.lhs')
| -rw-r--r-- | ghc/lib/glaExts/GlaExts.lhs | 97 |
1 files changed, 0 insertions, 97 deletions
diff --git a/ghc/lib/glaExts/GlaExts.lhs b/ghc/lib/glaExts/GlaExts.lhs deleted file mode 100644 index 98d48bd27d..0000000000 --- a/ghc/lib/glaExts/GlaExts.lhs +++ /dev/null @@ -1,97 +0,0 @@ -% -% (c) The AQUA Project, Glasgow University, 1994-1996 -% -\section[GlaExts]{The @GlaExts@ interface} - -Compatibility cruft: Deprecated! Don't use! This rug will -dissappear from underneath your feet very soon. - -This module will eventually be the interface to GHC-ONLY extensions: -i.e. unboxery and primitive operations over unboxed values. - -OLD: -The @GlaExts@ packages up various Glasgow extensions and -exports them all through one interface. The Idea being that -a Haskell program using a Glasgow extension doesn't have to -selective import of obscure/likely-to-move (believe me, we -really like to move functions around for the prelude bits!) -GHC interfaces - instead import the GlaExts rag bag and you should be away! - -\begin{code} -module GlaExts - - ( - ST, RealWorld, - - unsafePerformIO, - unsafeInterleaveIO, - - -- operations for interfacing IO and ST - -- - stToIO, -- :: ST RealWorld a -> IO a - ioToST, -- :: IO a -> ST RealWorld a - - -- compatibility cruft - PrimIO, - ioToPrimIO, - primIOToIO, - unsafePerformPrimIO, - thenPrimIO, thenIO_Prim, - seqPrimIO, returnPrimIO, - - seqST, thenST, returnST, - - -- Everything from module ByteArray: - module ByteArray, - - -- Same for Mutable(Byte)Array interface: - module MutableArray, - - -- the representation of some basic types: - Int(..),Addr(..),Word(..),Float(..),Double(..),Integer(..),Char(..), - - -- misc bits - trace, - Lift(..), - - -- and finally, all the unboxed primops of GHC! - module GHC - - ) where - -import GHC -import STBase -import IOExts -import PrelBase -import ByteArray -import MutableArray -import Monad -import IOBase -import Foreign - -type PrimIO a = IO a -primIOToIO io = io -ioToPrimIO io = io -unsafePerformPrimIO = unsafePerformIO -thenPrimIO :: PrimIO a -> (a -> PrimIO b) -> PrimIO b -thenPrimIO = (>>=) - -seqPrimIO :: PrimIO a -> PrimIO b -> PrimIO b -seqPrimIO = (>>) - -returnPrimIO :: a -> PrimIO a -returnPrimIO = return - -thenIO_Prim :: PrimIO a -> (a -> IO b) -> IO b -thenIO_Prim = (>>=) - --- ST compatibility stubs. -thenST :: ST s a -> ( a -> ST s b) -> ST s b -thenST = (>>=) - -seqST :: ST s a -> ST s b -> ST s b -seqST = (>>) - -returnST :: a -> ST s a -returnST = return -\end{code} |
