Module

Formless.Data.FormFieldResult

#FormFieldResult

data FormFieldResult error output

A data type which represents the possible output states of the field. Use the helpers in Retrieve to easily manipulate this type.

Constructors

Instances

#fromEither

fromEither :: forall e o. Either e o -> FormFieldResult e o

#toMaybe

toMaybe :: forall e o. FormFieldResult e o -> Maybe o

#_Error

_Error :: forall e o. Prism' (FormFieldResult e o) e

#_Success

_Success :: forall e o. Prism' (FormFieldResult e o) o

Modules