Convenience functions for validating data.
Return an error if the given String is empty, or if it contains only
whitespace characters.
Return an error if the given String cannot be parsed as an Int.
Return an error if the given Dict is empty.
Return an error if the given Set is empty.
Return an error if the given predicate returns True for the given
subject.
Return an error if given a Maybe that is Nothing.
Return an error if the given email string is malformed.
Run each of the given validators, in order, and return their concatenated error lists.
Return True if none of the given validators returns any errors for the given
subject, and False if any validator returns one or more errors.
Run each of the given validators, in order, stopping after the first error
and returning it. If no errors are encountered, return Nothing.
A
Validatoris a function which takes a subject and returns a list of errors describing anything invalid about that subject.An empty error list means the subject was valid.