
Hello
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?
Cheers,
Volker
--
Volker Wysk

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

Hello Volker, Wednesday, January 27, 2010, 8:19:44 AM, you wrote:
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.
i've googled for "exitWith throws the ExitCode" and it pointed me to the exitWith docs: "Computation exitWith code throws ExitException code." -- Best regards, Bulat mailto:Bulat.Ziganshin@gmail.com
participants (2)
-
Bulat Ziganshin
-
Volker Wysk