unpacked-validation

An unpacked validation data type

https://github.com/chessai/unpacked-validation

Latest on Hackage:0.1.0.0

This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.

BSD-3-Clause licensed by chessai
Maintained by [email protected]

The Validation type and associated operations.

This library is intended to be a drop-in replacement for Data.Valiation. To shave off pointer chasing, it uses -XUnboxedSums to represent the Validation type as two machine words that are contiguous in memory, without loss of expressiveness that Validation provides.

This library provides pattern synonyms Failure and Success, which allow users to pattern match on an Unpacked Validation in a familiar way.

Functions are also provided for converting an Unpacked Validation to the validation library's These, and vice versa.

This library is in alpha, and the internals are likely to change.