No more ExitException? <- documentation bug
vw at volker-wysk.de
Wed Jan 27 00:19:44 EST 2010
On Wed, 27 Jan 2010 03:48:47 +0100
Volker Wysk <vw at volker-wysk.de> wrote:
> I'm porting my HsShellScript library from GHC-6.8 to GHC-6.10. I'm catching an ExitException in the old version.
> The only occurence of ExitException in the GHC 6.10 libraries is in Control.OldException. So how is this done in GHC 6.10+ ? What replaces the old ExitException?
I'm answering my own question:
exitWith throws the ExitCode when it is called. This leads to the shutdown of the program, if it isn't caught. Just like ExitException.
This isn't documented.
Volker Wysk <pf3 at volker-wysk.de>
More information about the Glasgow-haskell-users