Re: [Haskell-cafe] ANN: attempt-0.0.0

2009-10-26 Thread Darrin Thompson
On Sun, Oct 25, 2009 at 4:51 PM, Michael Snoyman mich...@snoyman.com wrote: Comments are most welcome. I would like this to be a suitable replacement for the ubiquitous Maybe, (Either String) and ad-hoc Result data types so often used to report a failure. I'd be very happy to improve the

Re: [Haskell-cafe] ANN: attempt-0.0.0

2009-10-26 Thread Michael Snoyman
On Mon, Oct 26, 2009 at 6:19 PM, Darrin Thompson darri...@gmail.com wrote: On Sun, Oct 25, 2009 at 4:51 PM, Michael Snoyman mich...@snoyman.com wrote: Comments are most welcome. I would like this to be a suitable replacement for the ubiquitous Maybe, (Either String) and ad-hoc Result data

[Haskell-cafe] ANN: attempt-0.0.0

2009-10-25 Thread Michael Snoyman
Hello, I'm happy to announce the first release of the attempt package[1]. It is meant to solve the how should I represent a failure issue. It is based on extensible exceptions and provides a monad, a monad transformers and helper functions to replace many standard, unsafe functions like head.