Mistake in Haskell wiki MonadError?

Graham Klyne gk at ninebynine.org
Mon Dec 1 18:10:44 EST 2003


At:

   http://www.haskell.org/hawiki/MonadError

I see:
[[
instance Monad (Either e) where
     return = Right
     (Left e) >>= _ = e
     (Right a) >>= f = f a
]]

Shouldn't that be:
[[
     (Left e) >>= _ = Left e
]]

?

#g


------------
Graham Klyne
For email:
http://www.ninebynine.org/#Contact



More information about the Haskell-Cafe mailing list