Numeric literals

Mark Carroll
Wed, 29 Aug 2001 12:17:56 -0400 (EDT)

On Tue, 28 Aug 2001, Simon Marlow wrote:
> In GHC, you can do this:
>    import Exception
> 	do result <- catch (evaluate (read "foo" :: Int))
> 			       (\error -> ... )

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