import PrelST ( StateAndPtr#(..) )
import PrelHandle ( readHandle,
#if __GLASGOW_HASKELL__ < 303
- filePtr, flushBuf,
+ filePtr,
#endif
writeHandle
)
import GlaExts
import Addr ( Addr(..) )
import MutableArray ( MutableArray(..) )
+
+-- ForeignObj is now exported abstractly.
+#if __GLASGOW_HASKELL__ >= 303
+import qualified PrelForeign as Foreign ( ForeignObj(..) )
+#else
import Foreign ( ForeignObj(..) )
+#endif
+
import IOExts ( IORef, newIORef, readIORef, writeIORef )
import IO