[Haskell-cafe] ANN: attempt-0.0.0
darrinth at gmail.com
Mon Oct 26 12:19:43 EDT 2009
On Sun, Oct 25, 2009 at 4:51 PM, Michael Snoyman <michael at 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 package for
> the general community.
I haven't actually tried writing code with this, just read the api
docs. The api makes a lot of sense to me.
I'm a Python/Ruby guy. I see Haskell as short like Python, almost fast
like C. Your attempt monad thing _makes_ _sense_ to me.
One little nit I guess. Python had "string as exception" for awhile,
now they discourage that. There seems to be a historical pattern where
the right way to throw exceptions changes from throwing strings to
throwing real exception objects. Would it be possible to skip the
string one here? Are extensible exceptions too cumbersome for some
More information about the Haskell-Cafe