projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a0fafef
)
[project @ 2002-12-12 16:35:14 by simonmar]
author
simonmar
<unknown>
Thu, 12 Dec 2002 16:35:14 +0000
(16:35 +0000)
committer
simonmar
<unknown>
Thu, 12 Dec 2002 16:35:14 +0000
(16:35 +0000)
Fix to build with 4.08.x
ghc/compiler/utils/Binary.hs
patch
|
blob
|
history
diff --git
a/ghc/compiler/utils/Binary.hs
b/ghc/compiler/utils/Binary.hs
index
2414067
..
4df582a
100644
(file)
--- a/
ghc/compiler/utils/Binary.hs
+++ b/
ghc/compiler/utils/Binary.hs
@@
-297,7
+297,11
@@
getWord8 (BinMem _ ix_r sz_r arr_r) = do
ix <- readFastMutInt ix_r
sz <- readFastMutInt sz_r
when (ix >= sz) $
+#if __GLASGOW_HASKELL__ <= 408
+ throw (mkIOError eofErrorType "Data.Binary.getWord8" Nothing Nothing)
+#else
ioError (mkIOError eofErrorType "Data.Binary.getWord8" Nothing Nothing)
+#endif
arr <- readIORef arr_r
w <- unsafeRead arr ix
writeFastMutInt ix_r (ix+1)