From 90779f4452a591f673ad2cca0587f48764381f9e Mon Sep 17 00:00:00 2001
From: simonmar <unknown>
Date: Thu, 1 Jul 1999 12:30:06 +0000
Subject: [PATCH] [project @ 1999-07-01 12:30:06 by simonmar] Make this more
 Haskell 1.3-insensitive

---
 ghc/compiler/utils/StringBuffer.lhs | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/ghc/compiler/utils/StringBuffer.lhs b/ghc/compiler/utils/StringBuffer.lhs
index da2a3403f7f5..2b22939db0ae 100644
--- a/ghc/compiler/utils/StringBuffer.lhs
+++ b/ghc/compiler/utils/StringBuffer.lhs
@@ -182,7 +182,6 @@ expanded tabs, and enlarge it if necessary.
 
 \begin{code}
 #if __GLASGOW_HASKELL__ < 303
-ioError = fail
 mayBlock fo thing = thing
 
 writeCharOffAddr :: Addr -> Int -> Char -> IO ()
@@ -203,7 +202,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
-- 
GitLab