[Haskell-cafe] instance Monad Either?

Philip Weaver philip.weaver at gmail.com
Thu Dec 20 16:39:18 EST 2007

On Dec 20, 2007 1:35 PM, Eric <eeoam at ukfsn.org> wrote:

> According to this
> <
> http://www.randomhacks.net/articles/2007/03/10/haskell-8-ways-to-report-errors
> >
> Either is an instance of class Monad, but when I try to use the do
> notation I get a compiler error. What's going on?

It would help if you'd provide an example of how you're trying to use it and
what the error message is.  Thanks!

It's actually Either String, not Either, that can be an instance of Monad.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20071220/b1a1de76/attachment.htm

More information about the Haskell-Cafe mailing list