[project @ 2003-06-24 09:43:23 by simonmar]
authorsimonmar <unknown>
Tue, 24 Jun 2003 09:43:23 +0000 (09:43 +0000)
committersimonmar <unknown>
Tue, 24 Jun 2003 09:43:23 +0000 (09:43 +0000)
Fix up compilation with GHC 5.02

ghc/compiler/utils/Binary.hs

index 7d5990b..690fb56 100644 (file)
@@ -78,6 +78,7 @@ import PrelIOBase             ( IOError(..), IOErrorType(..)
                                )
 import PrelReal                        ( Ratio(..) )
 import PrelIOBase              ( IO(..) )
+import IOExts                  ( openFileEx, IOModeEx(..) )
 #else
 import Data.Array.IO
 import Data.Array
@@ -96,8 +97,6 @@ import GHC.Real                       ( Ratio(..) )
 import GHC.Exts
 import GHC.IOBase              ( IO(..) )
 import GHC.Word                        ( Word8(..) )
-#endif
-
 #if __GLASGOW_HASKELL__ < 601
 -- openFileEx is available from the lang package, but we want to 
 -- be independent of hslibs libraries.
@@ -105,6 +104,7 @@ import GHC.Handle           ( openFileEx, IOModeEx(..) )
 #else
 import System.IO               ( openBinaryFile )
 #endif
+#endif
 
 #if __GLASGOW_HASKELL__ < 601
 openBinaryFile f mode = openFileEx f (BinaryMode mode)