proposal #4095: add Applicative instance for Either

Ross Paterson ross at soi.city.ac.uk
Wed May 26 07:44:46 EDT 2010


Ashley Yakeley <ashley at semantic.org> writes:
> I currently have my own implementations for these:

>      instance Foldable Identity
>      instance Traversable Identity
>      instance Applicative Identity

The transformers package has such instances (but currently for a different
Identity type).

>      instance Foldable (Either p)
>      instance Traversable (Either p)
>      instance Applicative (Either p)

>      instance Foldable ((,) p)
>      instance Traversable ((,) p)

The Applicative one is proposed here.  The others should also be added.


More information about the Libraries mailing list