Control.Exception
Simon Marlow
marlowsd at gmail.com
Wed Oct 8 04:19:34 EDT 2008
Johannes Waldmann wrote:
> with 6.10, the following does not typecheck:
>
> foo `Control.Exception.catch` \ _ -> return bar
>
> Ambiguous type variable `e' in the constraint:
> `Control.Exception.Exception e'
>
> It is probably bad programming style anyway but what is the workaround?
As long as you're aware that it is bad programming style. We deliberately
didn't include an easy way to do this, because we want people to think
about why they need to catch *all* exceptions (most of the time it's a bug).
Cheers,
Simon
More information about the Glasgow-haskell-users
mailing list