[Haskell] Re: Better Exception Handling

Bayley, Alistair Alistair_Bayley at ldn.invesco.com
Tue Nov 23 11:21:35 EST 2004


 > And in Haskell we have catch(Dyn), bracket, and finally.
>  > Are these not enough?
> 
> We also have Control.Exception.try. :-)
> 
> Peter


Yes. Control.Exception.try is defined in terms of Control.Exception.catch:

http://www.haskell.org/ghc/docs/latest/html/libraries/base/Control.Exception
.html#v%3Atry

... and I think catch is more similar to the Python-style try.

-----------------------------------------
*****************************************************************
Confidentiality Note: The information contained in this 
message, and any attachments, may contain confidential 
and/or privileged material. It is intended solely for the 
person(s) or entity to which it is addressed. Any review, 
retransmission, dissemination, or taking of any action in 
reliance upon this information by persons or entities other 
than the intended recipient(s) is prohibited. If you received
this in error, please contact the sender and delete the 
material from any computer.
*****************************************************************



More information about the Haskell mailing list