Simon Marlow | 8 Oct 10:19
Picon

Re: Control.Exception

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

Gmane