> * raise :: String -> a > * handle :: (String -> IO a) -> IO a -> IO a > I'd be interested to know what people think of this. I like the trick of handle being in the IO monad to avoid problems with evaluation order. As usual though, it can be a high price to pay if all you wanted was a little local error handling. I'll probably add it to hbc. -- Lennart
Re: FW: Exceptions are too return values!
Lennart Augustsson Wed, 10 Jun 1998 15:53:14 +0200 (MET DST)
- Exceptions are too return values! Alex Ferguson
- Re: Exceptions are too return values! S. Alexander Jacobson
- Re: Exceptions are too return values! Mariano Suarez Alvarez
- Re: Exceptions are too return values! Alex Ferguson
- Re: Exceptions are too return values! Dave Tweed
- FW: Exceptions are too return values! Karlsson Kent - keka
- Re: FW: Exceptions are too return values! Simon L Peyton Jones
- Re: FW: Exceptions are too return values! Lennart Augustsson
- Re: FW: Exceptions are too return values! Ralf Hinze
- Re: FW: Exceptions are too return values! Tommy Thorn
- Re: FW: Exceptions are too return values! S. Alexander Jacobson
- Re: FW: Exceptions are too return values! Koen Claessen
- RE: Exceptions are too return values! Karlsson Kent - keka
- Re: FW: Exceptions are too return values! Kevin Hammond
- Re: FW: Exceptions are too return values! Fergus Henderson
- Re: Exceptions are too return values! Fergus Henderson
- Re: FW: Exceptions are too return values! Fergus Henderson
- Re: FW: Exceptions are too return values! Alastair Reid