module IOBase where
import STBase
+import UnsafeST
import PrelTup
import Foreign
import PackedString ( unpackCString )
import PrelBase
+import ArrBase ( ByteArray(..), MutableVar(..) )
import PrelRead
+
import GHC
-import ArrBase ( ByteArray(..), MutableVar(..) )
infixr 1 `thenIO_Prim`, `seqIO_Prim`
\end{code}
where
bottom = bottom -- Never evaluated
+--errorIO x = (waitRead#, errorIO#, makeForeignObj#, waitWrite#, (+#))
+
-- error stops execution and displays an error message
error :: String -> a
error s = error__ ( \ x -> _ccall_ ErrorHdrHook x ) s
import PrelList
import ArrBase ( Array, array, (!) )
-import STBase ( unsafePerformPrimIO )
+import UnsafeST ( unsafePerformPrimIO )
import Ix ( Ix(..) )
import Foreign () -- This import tells the dependency analyser to compile Foreign first.
-- There's an implicit dependency on Foreign because the ccalls in