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:
On Sat, Feb 21, 2009 at 01:54:52PM +, Ian Lynagh wrote:
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) -
Hello, cafe.
I whant to switch to GHC 6.10
My application compiled fine with 6.8.3, but after switchin to 6.10,
I've got errors about usage of catch function:
Main.hs:165:14:
Ambiguous type variable `e2' in the constraint:
`Exception e2' arising from a use of `catch' at
Hi Victor,
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
HTH,
Martijn.
Victor