bureaucromancy-0.1.0.2: Parse webforms & render to interactive hypertext
Safe HaskellSafe-Inferred
LanguageHaskell2010

Text.HTML.Form.Validate

Description

Does the form contain valid data according to specified rules? Can we normalize it to be more likely to do so?

Synopsis

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 :: String -> Input -> String Source #

Describe why a form input is invalid, or return the empty string.

inputErrorMessage' :: String -> 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.