Validators that can be attached to forms
Documentation
A validator. Invariant: the validator should not modify the result value, only check it.
validate :: Monad m => Form m i e v a -> Validator m e a -> Form m i e v aSource
Attach a validator to a form.
validateMany :: Monad m => Form m i e v a -> [Validator m e a] -> Form m i e v aSource
Attach multiple validators to a form.
Easy way to create a pure validator