20 Dec 22:39
Re: instance Monad Either?
Philip Weaver <philip.weaver <at> gmail.com>
2007-12-20 21:39:18 GMT
2007-12-20 21:39:18 GMT
On Dec 20, 2007 1:35 PM, Eric <eeoam <at> ukfsn.org> wrote:
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.
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.
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe <at> haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
RSS Feed