[Haskell-cafe] Help using catch in 6.10
Ian Lynagh
igloo at earth.li
Sat Feb 21 08:54:52 EST 2009
On Sat, Feb 21, 2009 at 01:18:35AM +0100, Martijn van Steenbergen wrote:
>
> You now need to specify the exact type of the exception you wish to
> catch. For example, to catch any exception:
>
> action `catch` (\(e :: SomeException) -> handler)
>
> For more information, see:
>
> http://www.haskell.org/~simonmar/papers/ext-exceptions.pdf
See also
"Catching all exceptions"
http://www.haskell.org/ghc/dist/stable/docs/libraries/base/Control-Exception.html#4
Thanks
Ian
More information about the Haskell-Cafe
mailing list