bkuhlmann/form-validator/1.1.0

NOTE: this package is not compatible with Elm 0.19.1

FormValidator.Validators

The Form Validator validators provide the functionality needed for validating a form field. These can be mixed and matched as desired.

isBlank : Value -> Error

Check if value is blank.

isEmpty : Value -> Error

Check if value is empty.

isInteger : Value -> Error

Check if value is an integer.

isFloat : Value -> Error

Check if value is a float.

isIncluded : List String -> Value -> Error

Check if value is included in list.

isExcluded : List String -> Value -> Error

Check if value is excluded from list.

isGreaterThan : Int -> Value -> Error

Check if value is greater than minimum.

isLessThan : Int -> Value -> Error

Check if value is less than maximum.

isBetween : Int -> Int -> Value -> Error

Check if value is minimum and maximum.

isLengthGreaterThanEqualTo : Int -> Value -> Error

Check if value length is greater than or equal to minimum.

isLengthLessThanEqualTo : Int -> Value -> Error

Check if value length is less than or equal to maximum.

isEmail : Value -> Error

Check if value is an email address.