[project @ 2001-10-23 22:25:46 by sof]
[ghc-hetmet.git] / ghc / compiler / utils / StringBuffer.lhs
index c72be06..f49449e 100644 (file)
@@ -92,8 +92,6 @@ import PrelPack               ( unpackCStringBA )
 
 #if __GLASGOW_HASKELL__ >= 501
 import PrelIO          ( hGetcBuffered )
-import PrelCError      ( throwErrnoIfMinus1RetryMayBlock )
-import PrelConc                ( threadWaitRead )
 #endif
 
 import Exception       ( bracket )
@@ -197,7 +195,7 @@ slurpFileExpandTabs fname = do
    (\ 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