jwheeler-cp/elm-form/1.0.0

Unavailable. Nobody can download this version any more, with elm or with the Lamdera compiler: github.com/jwheeler-cp/elm-form is gone (deleted or private); Software Heritage has not archived the repo; no fork with tag 1.0.0 found (52 same-name repos checked); no cached copy. Use another version.

Details

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