Construct a validator by wrapping up a function A => F[E]
.
Construct a validator for A
which validates that the input is equal to the reference value a
according to the Eq
instance for A
.
Construct a validator for A
which validates that the input is equal to the reference value a
according to the Eq
instance for A
.
If the validation fails the error messages e
are returned.
Construct a validator for A
which validates that the input is equal to the reference value a
according to the Eq
instance for A
.
Construct a validator for A
which validates that the input is equal to the reference value a
according to the Eq
instance for A
.
If the validation fails the function f
is used to construct validation error messages based upon the input.
Construct a validator for A
which always fails with the given error messages.
Construct a validator for A
which validates that the input is greater than the reference value a
according to the Order
instance for A
.
Construct a validator for A
which validates that the input is greater than the reference value a
according to the Order
instance for A
.
If the validation fails the error messages e
are returned.
Construct a validator for A
which validates that the input is greater than the reference value a
according to the Order
instance for A
.
Construct a validator for A
which validates that the input is greater than the reference value a
according to the Order
instance for A
.
If the validation fails the function f
is used to construct validation error messages based upon the input.
Construct a validator for A
which validates that the input is greater than or equal to the reference value a
according to the Order
instance for A
.
Construct a validator for A
which validates that the input is greater than or equal to the reference value a
according to the Order
instance for A
.
If the validation fails the error messages e
are returned.
Construct a validator for A
which validates that the input is greater than or equal to the reference value a
according to the Order
instance for A
.
Construct a validator for A
which validates that the input is greater than or equal to the reference value a
according to the Order
instance for A
.
If the validation fails the function f
is used to construct validation error messages based upon the input.
Construct a validator for A
which validates that the input is less than the reference value a
according to the Order
instance for A
.
Construct a validator for A
which validates that the input is less than the reference value a
according to the Order
instance for A
.
If the validation fails the error messages e
are returned.
Construct a validator for A
which validates that the input is less than the reference value a
according to the Order
instance for A
.
Construct a validator for A
which validates that the input is less than the reference value a
according to the Order
instance for A
.
If the validation fails the function f
is used to construct validation error messages based upon the input.
Construct a validator for A
which validates that the input is less than or equal to the reference value a
according to the Order
instance for A
.
Construct a validator for A
which validates that the input is less than or equal to the reference value a
according to the Order
instance for A
.
If the validation fails the error messages e
are returned.
Construct a validator for A
which validates that the input is less than or equal to the reference value a
according to the Order
instance for A
.
Construct a validator for A
which validates that the input is less than or equal to the reference value a
according to the Order
instance for A
.
If the validation fails the function f
is used to construct validation error messages based upon the input.
Construct a validator for A
which validates that the input is not equal to the reference value a
according to the Eq
instance for A
.
Construct a validator for A
which validates that the input is not equal to the reference value a
according to the Eq
instance for A
.
If the validation fails the error messages e
are returned.
Construct a validator for A
which validates that the input is not equal to the reference value a
according to the Eq
instance for A
.
Construct a validator for A
which validates that the input is not equal to the reference value a
according to the Eq
instance for A
.
If the validation fails the function f
is used to construct validation error messages based upon the input.
Construct a validator for A
which always passes.
Construct a validator for A
which always passes. Usually used as the basis for a more complex validator.
The companion object for
Validator
provides a number of functions for constructing simple validators.Validators for comparisons and equality checking can be constructed for types with
Order
andEq
instances, respectively.There are also functions provided for constructing validators which always pass and which always fail.