ozmat / elm-forms / Forms.Validation.Result

This module provides the validation result

Form Result


type FormResult comparable err a
    = Valid a
    | Invalid (Dict comparable err)
    | Error (Dict comparable ConfigError)

A FormResult represents the result of a form validation. There are 3 different states :

Configuration Error


type ConfigError
    = MissingField
    | WrongType

A ConfigError represents a configuration error on a Field. It usually happens when there is an error in the Fields or the Validate function :

Note: if you have trouble debugging those errors have a look at the README troubleshooting section