
29 Aug
2001
29 Aug
'01
4:17 p.m.
On Tue, 28 Aug 2001, Simon Marlow wrote: (snip)
In GHC, you can do this:
import Exception
do result <- catch (evaluate (read "foo" :: Int)) (\error -> ... ) (snip)
I do like that. Is it likely to become standard someday, do you think? Errors like this should certainly be catchable in such a way; I was sad when I was first looking into this and found that 'catch' seemed to be inextricably linked to IO. -- Mark