turning ExitCode into an IO exception

Max Bolingbroke batterseapower at hotmail.com
Tue May 11 02:47:16 EDT 2010

On 10 May 2010 21:02, Henning Thielemann <lemming at henning-thielemann.de> wrote:
> Is there a prefered way to convert an ExitCode to an IO exception?

The most direct way would be to use exitWith, though it feels a bit
weird: http://haskell.org/ghc/docs/6.12.1/html/libraries/base-

This may not be suitable if you want to be able to make exitWith calls
of your own, because you won't be able to tell the exceptions apart.


More information about the Libraries mailing list