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
withDefaultcombinator. - Make
optionallypreserve output of given validator. - Remove redundant
fixVusage 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
profunctorsdependency. -
Add
Profunctorinstance forValidator. -
Rework
Validatorsemigroup instance.The new semigroup instance now works similar to the
ValidationRulesemigroup instance. -
Add
Monoidinstance forValidator. -
Remove
ValidationRule. -
Remove
Selectortype alias. -
Rewrite all previous
ValidationRulecombinators to work withValidators 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
labeland<?>. -
verifyis now an alias to flippedlmapfromData.Profunctor, specialized forValidators. -
Allow usage with base == 4.12
-
Explicitly constraint smallcheck dependency to 1.2.0+