talira

Combinators for Haskell's Either type and a monoidal Validation type

open sourceBSD-3-Clausefree

either is a Haskell package of combinators for working with sums. Data.Either.Combinators has functions for probing and unwrapping values inside Either, and Data.Either.Validation adds Validation, a monoidal sibling to Either that accumulates errors instead of stopping at the first.

Problems it solves

  • collect every validation error in Haskell instead of stopping at the first
  • get the Left or Right out of an Either in Haskell with helper functions
  • accumulate multiple errors from independent checks with an Applicative in Haskell

Features

  • combinators for probing and unwrapping Either values
  • Validation: a monoidal Either that accumulates errors