Skip to content
Snippets Groups Projects
Commit 30e32d5e authored by ross's avatar ross
Browse files

[haddock @ 2003-01-16 15:07:57 by ross]

Adjust for the new exception libraries (as well as the old ones).
parent 12d02619
No related branches found
No related tags found
No related merge requests found
......@@ -269,7 +269,7 @@ getWord8 (BinMem _ ix_r sz_r0 arr_r0) = do
ix <- readFastMutInt ix_r
sz <- readFastMutInt sz_r0
when (ix >= sz) $
throw (mkIOError eofErrorType "Data.Binary.getWord8" Nothing Nothing)
ioError (mkIOError eofErrorType "Data.Binary.getWord8" Nothing Nothing)
arr <- readIORef arr_r0
w <- unsafeRead arr ix
writeFastMutInt ix_r (ix+1)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment