Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
fa2fe973
Commit
fa2fe973
authored
Jun 24, 2003
by
simonmar
Browse files
[project @ 2003-06-24 09:43:23 by simonmar]
Fix up compilation with GHC 5.02
parent
9d5c1a04
Changes
1
Hide whitespace changes
Inline
Side-by-side
ghc/compiler/utils/Binary.hs
View file @
fa2fe973
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment