2 % (c) The AQUA Project, Glasgow University, 1994-1996
4 \section[GlaExts]{The @GlaExts@ interface}
6 The @GlaExts@ packages up various Glasgow extensions and
7 exports them all through one interface. The Idea being that
8 a Haskell program using a Glasgow extension doesn't have to
9 selective import of obscure/likely-to-move (believe me, we
10 really like to move functions around for the prelude bits!)
11 GHC interfaces - instead import the GlaExts rag bag and you should be away!
17 -- From module STBase, the PrimIO monad
18 -- (an instance of ST):
27 unsafeInterleavePrimIO,
29 -- backwards compatibility
30 listPrimIO, -- :: [PrimIO a] -> PrimIO [a]
31 mapPrimIO, -- :: (a -> PrimIO b) -> [a] -> PrimIO [b]
32 mapAndUnzipPrimIO, -- :: (a -> PrimIO (b,c)) -> [a] -> PrimIO ([b],[c])
35 -- operations for interfacing IO and ST/PrimIO
37 stToIO, -- :: ST RealWorld a -> IO a
38 primIOToIO, -- :: PrimIO a -> IO a
39 ioToST, -- :: IO a -> ST RealWorld a
40 ioToPrimIO, -- :: IO a -> PrimIO a
41 thenIO_Prim, -- :: PrimIO a -> (a -> IO b) -> IO b
42 seqIO_Prim, -- :: PrimIO a -> IO b -> IO b
44 -- Everything from module ByteArray:
47 -- Same for Mutable(Byte)Array interface:
50 -- the representation of some basic types:
51 Int(..),Addr(..),Word(..),Float(..),Double(..),Integer(..),Char(..),
56 -- and finally, all the unboxed primops of GHC!