Module

Formless.Data.FormFieldResult

Package
purescript-formless-aj
Repository
ajnsit/purescript-formless-independent

#FormFieldResult Source

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 Source

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

#toMaybe Source

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

#_Error Source

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

#_Success Source

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