[project @ 2003-06-24 09:32:34 by stolz]
authorstolz <unknown>
Tue, 24 Jun 2003 09:32:34 +0000 (09:32 +0000)
committerstolz <unknown>
Tue, 24 Jun 2003 09:32:34 +0000 (09:32 +0000)
Fix another occurence of openFileEx in stage2

ghc/compiler/utils/Binary.hs

index 16a5291..7d5990b 100644 (file)
@@ -251,7 +251,7 @@ writeBinMem (BinMem _ ix_r sz_r arr_r) fn = do
 
 readBinMem :: FilePath -> IO BinHandle
 readBinMem filename = do
-  h <- openFileEx filename (BinaryMode ReadMode)
+  h <- openBinaryFile filename ReadMode
   filesize' <- hFileSize h
   let filesize = fromIntegral filesize'
   arr <- newArray_ (0,filesize-1)