[project @ 1997-05-19 05:59:28 by sof]
[ghc-hetmet.git] / ghc / lib / glaExts / GlaExts.lhs
index 1a55b91..42d78a3 100644 (file)
@@ -18,19 +18,28 @@ module GlaExts
         -- (an instance of ST):
        PrimIO,
         ST, RealWorld,
-        module Monad,   -- ST is an instance
-        fixPrimIO, unsafePerformPrimIO, unsafeInterleavePrimIO,
-        returnPrimIO, thenPrimIO, seqPrimIO,
+
+       thenPrimIO,     -- 
+        returnPrimIO, 
+       seqPrimIO,
+        fixPrimIO, 
+       unsafePerformPrimIO, 
+       unsafeInterleavePrimIO,
         
-        listPrimIO, mapPrimIO, mapAndUnzipPrimIO,
+       -- backwards compatibility
+        listPrimIO,        -- :: [PrimIO a] -> PrimIO [a]
+       mapPrimIO,         -- :: (a -> PrimIO b) -> [a] -> PrimIO [b]
+        mapAndUnzipPrimIO, -- :: (a -> PrimIO (b,c)) -> [a] -> PrimIO ([b],[c])
+
 
         -- operations for interfacing IO and ST/PrimIO
         --
-        stToIO,       --:: ST RealWorld a -> IO a
-       primIOToIO,   --:: PrimIO a       -> IO a
-       ioToST,       --:: IO a -> ST RealWorld a
-       ioToPrimIO,   --:: IO a -> PrimIO       a
+        stToIO,       -- :: ST RealWorld a -> IO a
+       primIOToIO,   -- :: PrimIO a       -> IO a
+       ioToST,       -- :: IO a -> ST RealWorld a
+       ioToPrimIO,   -- :: IO a -> PrimIO       a
         thenIO_Prim,  -- :: PrimIO a -> (a -> IO b) -> IO b
+        seqIO_Prim,   -- :: PrimIO a -> IO b -> IO b
 
         -- Everything from module ByteArray:
        module ByteArray,
@@ -39,7 +48,7 @@ module GlaExts
        module MutableArray,
        
         -- the representation of some basic types:
-        Int(..),Addr(..),Word(..),Float(..),Double(..),Integer(..),
+        Int(..),Addr(..),Word(..),Float(..),Double(..),Integer(..),Char(..),
 
         -- misc bits
        trace,
@@ -56,5 +65,6 @@ import ByteArray
 import MutableArray
 import Monad
 import IOBase
+import Foreign
 
 \end{code}