add compatibility cruft for PrimIO.
%
\section[GlaExts]{The @GlaExts@ interface}
%
\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
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
stToIO, -- :: ST RealWorld a -> IO a
ioToST, -- :: IO a -> ST RealWorld a
stToIO, -- :: ST RealWorld a -> IO a
ioToST, -- :: IO a -> ST RealWorld a
+ -- compatibility cruft
+ PrimIO,
+ ioToPrimIO,
+ primIOToIO,
+ unsafePerformPrimIO,
+
-- Everything from module ByteArray:
module ByteArray,
-- Everything from module ByteArray:
module ByteArray,
import IOBase
import Foreign
import IOBase
import Foreign
+type PrimIO a = IO a
+primIOToIO io = io
+ioToPrimIO io = io
+unsafePerformPrimIO = unsafePerformIO
+