Re: [Haskell-cafe] Help using catch in 6.10

2009-02-21 Thread Ian Lynagh
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:

Re: [Haskell-cafe] Help using catch in 6.10

2009-02-21 Thread John Meacham
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) -

[Haskell-cafe] Help using catch in 6.10

2009-02-20 Thread Victor Nazarov
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

Re: [Haskell-cafe] Help using catch in 6.10

2009-02-20 Thread Martijn van Steenbergen
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