No subject


Thu Feb 24 17:58:36 CET 2011


should do everything you want, then, with the default monad instance
for either.

You would need something like:

> myThrowError = Left . Left
> haltExecution = Left . Right

Antoine

> Sent from my HTC
>
> ----- Reply message -----
> From: "Antoine Latter" <aslatter at gmail.com>
> Date: Thu, Jun 9, 2011 8:18 am
> Subject: [Haskell-beginners] "Trinary" version of Either
> To: "Christopher Howard" <christopher.howard at frigidcode.com>
> Cc: "Haskell Beginners" <beginners at haskell.org>
>
>
> On Thu, Jun 9, 2011 at 10:15 AM, Christopher Howard
> <christopher.howard at frigidcode.com> wrote:
>> Is there a Haskell package out there that provides a "trinary" version
>> of Either, i.e., allowing three values instead of two? I can see how
>> that would be very handy. Defining one obviously wouldn't be difficult,
>> but it would be helpful if someone else had already developed Monad
>> bindings and other related stuff.
>>
>
> What would the Monad operations do?
>
>> --
>> frigidcode.com
>> theologia.indicium.us
>>
>> _______________________________________________
>> Beginners mailing list
>> Beginners at haskell.org
>> http://www.haskell.org/mailman/listinfo/beginners
>>
>
>
>
>



More information about the Beginners mailing list