Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Does the form contain valid data according to specified rules? Can we normalize it to be more likely to do so?
Synopsis
- isInputValid :: Input -> Bool
- isInputValid' :: Input -> Bool
- isFormValid :: Form -> Bool
- isFormValid' :: Form -> Bool
- inputErrorMessage :: Input -> String
- inputErrorMessage' :: Input -> [Char]
- normalizeInput :: Input -> Input
- normalizeForm :: Form -> Form
Documentation
isInputValid :: Input -> Bool Source #
Is the given input valid?
isInputValid' :: Input -> Bool Source #
Is the given input once normalized valid?
isFormValid :: Form -> Bool Source #
Are all inputs in a form valid according to their rules?
isFormValid' :: Form -> Bool Source #
Are all inputs in a form valid according to their rules, once normalized?
inputErrorMessage :: Input -> String Source #
Describe why a form input is invalid, or return the empty string.
inputErrorMessage' :: Input -> [Char] Source #
Describe why an input, once normalized, is invalid? Or returns empty string.
normalizeInput :: Input -> Input Source #
Implicitly tweak the input to make it more likely to be valid.
normalizeForm :: Form -> Form Source #
Implicitly tweak all of a form's inputs to make them more likely to be valid.