Gizra/elm-form/1.0.0

Form.Error

Validation errors.

type alias Error e =
Tree (ErrorValue e)

Tree of errors.

type ErrorValue e
= Empty
| InvalidString
| InvalidEmail
| InvalidFormat
| InvalidInt
| InvalidFloat
| InvalidBool
| SmallerIntThan Int
| GreaterIntThan Int
| SmallerFloatThan Float
| GreaterFloatThan Float
| ShorterStringThan Int
| LongerStringThan Int
| NotIncludedIn
| CustomError e

A validation error. See Form.Validate.customError for CustomError building.

value : ErrorValue a -> Error a

Build a tree node (a leaf) for this error