either

Combinators for working with sums http://github.com/ekmett/either/

LTS Haskell 9.14:4.4.1.1
Stackage Nightly 2017-11-24:4.4.1.1
Latest on Hackage:5
BSD3 licensed by Edward A. Kmett
Maintained by Edward A. Kmett

Module documentation for 4.4.1.1

either

Hackage Build Status

This provides an Either monad transformer that unlike ErrorT is unencumbered by a constraint on its Left hand argument. This is needed for a number of applications of this monad transformer, notably in recursion-schemes.

Contact Information

Contributions and bug reports are welcome!

Please feel free to contact me through github or on the #haskell IRC channel on irc.freenode.net.

-Edward Kmett

Changes

5 - Changed the semantics of the Validation Alt and Alternative instances to collect errors. The previous implementation did not correctly abide the laws. Added vap, for when users want validation like semantics but don't want to convert back and forth to validation all the time. Similarly, added ealt to give either's Alt semantics to validation. * Dropped the deprecated Control.Monad.Trans.Either. Use Control.Monad.Trans.Except from transformers and/or transformers-compat instead.

4.5

  • Add MMonad instance for EitherT
  • Deprecate Control.Monad.Trans.Either in favor of Control.Monad.Trans.Except
  • Add firstEitherT

4.4.1.1

  • Fixed building on newer GHCs. (type synonyms require explicit foralls for unused variables these days)

4.4.1

  • transformers 0.5 support
  • Documentation fixes

4.4

  • Support mmorph

4.3.4.1

  • Support MonadRandom 0.4

4.3.4

  • Support bifunctors 5, profunctors 5, and semigroupoids 5.

4.3.3.3

  • Fixed and enhanced documentation for eitherToError.

4.3.3.2

  • Support exceptions 0.8

4.3.3.1

  • Support exceptions 0.7

4.3.3

  • Added eitherToError.

4.3.2.1

  • Support monad-control 1.0

4.3.2

  • Added Validation.

4.3.0.2

  • Updated MonadRandom support.

4.3.0.1

  • Fixed import of MonadCatch to support versions of base before 4.6

4.3

  • Inverted dependency between free and either.

4.2

  • Added instances for MonadThrow, MonadCatch.

4.1

  • Added instances for MonadBase, MonadBaseControl, and MonadTransControl.

4.0

  • Updated dependencies.

3.4.2

  • Added 'Data.Either.Combinators'.

3.4.1

  • Trustworthy despite UndecidableInstances

3.4

  • Delegate fail to the underlying Monad, rather than error.

3.3

  • Inverted roles between Semigroup and Alt. This let us write Alternative and MonadPlus instances that are compatible.
  • Removed the Functor constraint on most instances in exchange for incurring a Monad constraint on Traversable. EitherT is after all, a Monad transformer first and foremost.

3.2

  • Changed the Semigroup to use a Semigroup to combine Left branches. Left Alt untouched, so you can mix and match.

3.1

  • Added instances for mtl classes and MonadRandom.
  • The meaning of mapEitherT has changed to match mapErrorT in the mtl. The old mapEitherT is now bimapEitherT.

3.0.3

  • Started CHANGELOG
Used by 184 packages:
airship, amby, aws-kinesis-reshard, backtracking-exceptions, bitcoin-payment-channel, blockchain, brittany, butcher, cabal-bounds, cabal-cargs, cabal-lenses, category-extras, catnplus, cgrep, citation-resolve, cj-token, cli-builder, codex, conduit-find, configifier, consul-haskell, control-invariants, convert, coroutine-object, cparsing, cryptsy-api, CSPM-Frontend, dash-haskell, database-migrate, debian, dixi, drifter-postgresql, DSH, dsh-sql, dynamic-graph, easy-api, emailparse, engine-io, engine-io-wai, error-continuations, ethereum-client-haskell, exference, fficxx, ffmpeg-light, filediff, find-conduit, fixie, flamingra, fn-extra, formura, gelatin-freetype2, gelatin-gl, gelatin-sdl2, glabrous, glambda, growler, happstack-heist, haskell-kubernetes, haskellscript, haskoin, haskoin-core, haskoin-node, haskoin-util, hasql, hasql-backend, hasql-postgres, haste-compiler, hcltest, hedis-simple, hexpr, h-gpgme, hipbot, hipchat-hs, hledger-api, hnetcdf, hoggl, hoist-error, hoodle-core, hoodle-extra, hoodle-parser, hsoz, hs-snowtify, http-client-session, ical, imap, indieweb-algorithms, infernu, interruptible, jose-jwt, karps, katip, laika, language-qux, lens-prelude, librato, list-t-attoparsec, list-t-html-parser, list-t-libcurl, lxd-client, magicbane, marquise, mathblog, medium-sdk-haskell, melody, microformats2-parser, model, monad-journal, mtgoxapi, mustache, nomyx-api, oauthenticated, obd, objective, octohat, oculus, open-signals, optparse-simple, orchestrate, ot, pb-next, penny, pg-recorder, pianola, ping-wrapper, pivotal-tracker, playlists-http, postgresql-query, postgresql-simple-opts, postgrest, postgrest-ws, pregame, presto-hdbc, project-m36, psc-ide, qr-imager, quickcheck-property-monad, Quickson, quickwebapp, rebase, references, replicant, restricted-workers, riff, Saturnin, sdr, servant-ede, servant-examples, servant-haxl-client, servant-snap, simple-conduit, slack, snaplet-sqlite-simple-jwt-auth, snaplet-wordpress, snowtify, socketson, stack, stackage-cli, stratux-http, stratux-websockets, syncthing-hs, system-lifted, system-util, t3-server, tasty-integrate, themoviedb, themplate, thumbnail-plus, tibetan-utils, transformers-convert, ttask, twfy-api-client, typerbole, validate-input, verify, vigilance, vimeta, WaveFront, webcrank, xcffib, yahoo-finance-api, yarn-lock, yesod-auth-ldap-native, yesod-crud-persist, zm
comments powered byDisqus