[project @ 2003-06-12 15:15:23 by simonmar]
authorsimonmar <unknown>
Thu, 12 Jun 2003 15:15:23 +0000 (15:15 +0000)
committersimonmar <unknown>
Thu, 12 Jun 2003 15:15:23 +0000 (15:15 +0000)
exitWith should be using throwIO not throw.

System/Exit.hs

index 23bfbdb..3c2aea2 100644 (file)
@@ -45,9 +45,9 @@ import System
 
 #ifndef __NHC__
 exitWith :: ExitCode -> IO a
-exitWith ExitSuccess = throw (ExitException ExitSuccess)
+exitWith ExitSuccess = throwIO (ExitException ExitSuccess)
 exitWith code@(ExitFailure n)
-  | n /= 0 = throw (ExitException code)
+  | n /= 0 = throwIO (ExitException code)
 #ifdef __GLASGOW_HASKELL__
   | otherwise = ioError (IOError Nothing InvalidArgument "exitWith" "ExitFailure 0" Nothing)
 #endif