haskell-cafe@haskell.org
[Top] [All Lists]

Re: [Haskell-cafe] Why Either = Left | Right instead of something like

Subject: Re: [Haskell-cafe] Why Either = Left | Right instead of something like Result = Success | Failure
From: Donn Cave
Date: Fri, 28 May 2010 11:44:20 -0700 PDT
Quoth Vo Minh Thu <noteed@xxxxxxxxx>,
...
> Control.Monad.Error provides an instance for Either.

... in the mtl transformer library, in case anyone else besides
myself didn't know that. And I see it has to be there because
it depends on the Error typeclass.

(So the documentation for Control.Monad.Error, is mistaken, where
at the top it says

  Example type:
      Either String a

... which should be

      Either Error a

... ?  Though I can't really be sure what the documentation is
trying to say.)


        Donn Cave, donn@xxxxxxxxxxx

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@xxxxxxxxxxx
http://www.haskell.org/mailman/listinfo/haskell-cafe

<Prev in Thread] Current Thread [Next in Thread>