
27 Jan
2010
27 Jan
'10
12:19 a.m.
On Wed, 27 Jan 2010 03:48:47 +0100
Volker Wysk
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.
Cheers,
Volker
--
Volker Wysk