The neither package

[Tags: bsd3, deprecated, library]

Deprecated in favor of either, monad-control

The standard Either datatype suffers from a lack of monad and applicative instances. To make matters worse, the mtl and transformers packages provide orphan instances which conflict with each other, as well as defining a transformer version which has an usually unnecessary superclass constraint.

Besides these annoyances, there is another issue: there exist two reasonable definitions of the Applicative instance for Either: one the holds onto only the first Left value, or one that appends all Left values together via a Monoid instance. The former is compatible with the monad instance, while the latter is not.

This package defines three datatypes, some helpers functions and instances. The data types are AEither, MEither and MEitherT. AEither provides an Applicative instance which appends Left values, MEither provides the monadic definition, and MEitherT is a monad transformer.


Properties

Versions0.0.0, 0.0.1, 0.0.2, 0.1.0, 0.2.0, 0.3.0, 0.3.0.1, 0.3.1, 0.3.1.1
Dependenciesbase (==4.*), failure (>=0.1.0 && <0.2), transformers (>=0.2.1 && <0.3)
LicenseBSD3
AuthorMichael Snoyman <michael@snoyman.com>
MaintainerMichael Snoyman <michael@snoyman.com>
StabilityStable
CategoryData
Home pagehttp://github.com/snoyberg/neither
Source repositoryhead: git clone git://github.com/snoyberg/neither.git
Upload dateWed Jan 18 17:25:15 UTC 2012
Uploaded byMichaelSnoyman
Downloads593 total (38 in last 30 days)

Modules

[Index]

Downloads

Maintainers' corner

For package maintainers and hackage trustees