
15 Dec
2013
15 Dec
'13
9:16 p.m.
* Evan Laforge
I always thought it was kind of bizarre how other languages (even wordy old java) have "exit :: Int -> IO ()", but haskell has "System.Exit.exitSuccess" and "System.Exit.exitWith (ExitFailure 42)". Yes it's higher level to say "success" and "failure" than "0" and ">0", but wow that's a lot of bureaucracy for something trivial. And it still lets you write (ExitFailure 0).
System.Exit.exitFailure :: IO a has existed for a long time, FWIW. Roman