Proposal: die to System.Exit (and/or Prelude)

Roman Cheplyaka roma at ro-che.info
Mon Dec 16 02:16:45 UTC 2013


* Evan Laforge <qdunkan at gmail.com> [2013-12-15 17:54:14-0800]
> 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://www.haskell.org/pipermail/libraries/attachments/20131216/75a7d1dc/attachment-0001.sig>


More information about the Libraries mailing list