A data-type like Either but with differing properties and type-class instances. Library support is provided for this different representation, include lens-related functions for converting between each and abstracting over their similarities. Validation The Validation data type is isomorphic to Either, but has an instance of Applicative that accumulates on the error side. That is to say, if two (or more) errors are encountered, they are appended using a Semigroup operation. As a consequence of this Applicative instance, there is no corresponding Bind or Monad instance. Validation is an example of, "An applicative functor that is not a monad." [Index] [Quick Jump] Package maintainers For package maintainers and hackage trustees Candidates


Keywords
data, library, Propose Tags, , Index, Quick Jump, Data.Validation, validation-1.1.3.tar.gz, browse, Package description, Package maintainers, TonyMorris, qfpl, GeorgeWilson, jack, edit package information , 0.5.0, 0.6.0, 0.6.1, 0.6.2, 0.6.3, 1, 1.1, 1.1.1, 1.1.2
License
BSD-3-Clause
Install
cabal install validation-1.1.3

Documentation

Validation

CSIRO's Data61 Logo

Several data-types like Either but with differing properties and type-class instances.

Library support is provided for those different representations, include lens-related functions for converting between each and abstracting over their similarities.

Download from hackage.

  • Validation

    The Validation data type is isomorphic to Either, but has an instance of Applicative that accumulates on the error side. That is to say, if two (or more) errors are encountered, they are appended using a Semigroup operation.

    As a consequence of this Applicative instance, there is no corresponding Bind or Monad instance. Validation is an example of, "An applicative functor that is not a monad."