#if __GLASGOW_HASKELL__ >= 501
import PrelIO ( hGetcBuffered )
-import PrelCError ( throwErrnoIfMinus1RetryMayBlock )
-import PrelConc ( threadWaitRead )
#endif
import Exception ( bracket )
(\ handle ->
do sz <- hFileSize handle
if sz > toInteger (maxBound::Int)
- then IOERROR (userError "slurpFile: file too big")
+ then ioError (userError "slurpFile: file too big")
else do
let sz_i = fromInteger sz
sz_i' = (sz_i * 12) `div` 10 -- add 20% for tabs