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
NotValidated
Validating
Error error
Success output
Instances
Generic (FormFieldResult e o) _
(Eq e, Eq o) => Eq (FormFieldResult e o)
Functor (FormFieldResult e)
Apply (FormFieldResult e)
Applicative (FormFieldResult e)
Bind (FormFieldResult e)
Monad (FormFieldResult e)
(Show e, Show o) => Show (FormFieldResult e o)
#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