Skip to content

Releases: TotallyNotChase/valida

1.1.0 release

25 Aug 13:43
Compare
Choose a tag to compare

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

25 Aug 13:42
Compare
Choose a tag to compare

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 for Validator.

  • Rework Validator semigroup instance.

    The new semigroup instance now works similar to the ValidationRule semigroup instance.

  • Add Monoid instance for Validator.

  • Remove ValidationRule.

  • Remove Selector type alias.

  • Rewrite all previous ValidationRule combinators to work with Validators 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 flipped lmap from Data.Profunctor, specialized for Validators.

  • Allow usage with base == 4.12

  • Explicitly constraint smallcheck dependency to 1.2.0+