[Haskell] IO, exceptions and error handling

Philippa Cowderoy flippa at flippac.org
Mon Jun 14 12:17:17 EDT 2004

On Mon, 14 Jun 2004, Tim Docker wrote:

> Both of these approaches seem fairly "invasive" in their
> effect on the code. Are people using haskell for real world
> tasks happy with having to choose from these? The former is
> more general, but any function that needs to be able to
> fail or propagate failure will end up being a do {} block.

The ability to fail doesn't need the do notation, just use of return for
success - similar for propagating failure.

flippa at flippac.org

More information about the Haskell mailing list