validation 0.1.0
validation: ^0.1.0 copied to clipboard
A port of scalaz's Validation[F, S] class to dart.
Validation #
A port of scalaz's Validation[F, S] class to dart. It's a way of codifying
errors and success values in the type system. A Validation<F, S> is an
interface which is implemented by either a Failure<F, S> or a
Success<F, S>. Success<F, S> is a container of type S and it's meant to
contain the success value while Failure<F, S> is a container of type F
meant to contain the failure/error value.
Implements Functor, Applicative and Monad from
concepts.