Merge pull request #36 from maoe/exit

Relax the return type of exit
This commit is contained in:
Gabriel Gonzalez 2015-03-19 19:19:14 -07:00
commit 45219bc991

View file

@ -533,7 +533,7 @@ sleep n = threadDelay (truncate (n * 10^(6::Int)))
An exit code of @0@ indicates success
-}
exit :: Int -> IO ()
exit :: Int -> IO a
exit 0 = exitWith ExitSuccess
exit n = exitWith (ExitFailure n)