Releases: TotallyNotChase/valida
1.1.0 release
This release improves the optionally
function, adds the withDefault
function, and also contains some general metadata fixes.
- Add
withDefault
combinator. - Make
optionally
preserve output of given validator. - Remove redundant
fixV
usage from examples.
1.0.0 release
This release adds a Profunctor instance for validator, and generally overhauls the API. Multiple breaking changes - but the general API usage should still be similar.
-
Add
profunctors
dependency. -
Add
Profunctor
instance forValidator
. -
Rework
Validator
semigroup instance.The new semigroup instance now works similar to the
ValidationRule
semigroup instance. -
Add
Monoid
instance forValidator
. -
Remove
ValidationRule
. -
Remove
Selector
type alias. -
Rewrite all previous
ValidationRule
combinators to work withValidator
s instead. -
Rename
negateRule
->negateV
. -
Rename
falseRule
->failV
. -
Add
fixV
- refer to the documentation for more information. -
Remove
validate
- no longer necessary. -
Rename
labelV
->label
. -
Rename
<??>
-><?>
. Infix precedence 6. -
Remove
label
and<?>
. -
verify
is now an alias to flippedlmap
fromData.Profunctor
, specialized forValidator
s. -
Allow usage with base == 4.12
-
Explicitly constraint smallcheck dependency to 1.2.0+