bkuhlmann/form-validator/1.2.0

NOTE: this package is not compatible with Elm 0.19.1

FormValidator.Validators

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

isBlank : Value -> Error

Validates if value is blank.

isEmpty : Value -> Error

Validates if value is empty.

isInteger : Value -> Error

Validates if value is an integer.

isFloat : Value -> Error

Validates if value is a float.

isIncluded : List String -> Value -> Error

Validates if value is included in list.

isExcluded : List String -> Value -> Error

Validates if value is excluded from list.

isGreaterThan : Int -> Value -> Error

Validates if value is greater than minimum.

isGreaterThanEqualTo : Int -> Value -> Error

Validates if value is greater than or equal to minimum.

isLessThan : Int -> Value -> Error

Validates if value is less than maximum.

isLessThanEqualTo : Int -> Value -> Error

Validates if value is less than or equal to maximum.

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

Validates if value is within minimum and maximum inclusive range.

isLengthGreaterThan : Int -> Value -> Error

Validates if value length is greater than minimum.

isLengthGreaterThanEqualTo : Int -> Value -> Error

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

isLengthLessThan : Int -> Value -> Error

Validates if value length is less than maximum.

isLengthLessThanEqualTo : Int -> Value -> Error

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

isLengthBetween : Int -> Int -> Value -> Error

Validates if value length is between minimum and maximum inclusive range.

isEmail : Value -> Error

Validates if value is an email address.