Module
Formless.Types.Form
- Package
- purescript-formless-aj
- Repository
- ajnsit/purescript-formless-independent
#InputField Source
newtype InputField error input output
A wrapper to represent only the input type. Requires that eq
is defined for the input
type in order to track dirty states.
Constructors
InputField input
Instances
Newtype (InputField e i o) _
(Eq i) => Eq (InputField e i o)
#OutputField Source
newtype OutputField error input output
A wrapper to represent only the output type. Used to represent form results at the end of validation.
Constructors
OutputField output
Instances
Newtype (OutputField e i o) _
(Eq o) => Eq (OutputField e i o)
#InputFunction Source
newtype InputFunction error input output
Represents modifications to input fields
Constructors
InputFunction (input -> input)
Instances
Newtype (InputFunction e i o) _
#FormFieldRow Source
type FormFieldRow error input output = (input :: input, result :: FormFieldResult error output, touched :: Boolean)
The row used for the FormField newtype and in lens type signatures
#ErrorType Source
type ErrorType error input output = error
A type synonym that lets you pick out just the error type from your form row.
#InputType Source
type InputType error input output = input
A type synonym that lets you pick out just the input type from your form row.
#OutputType Source
type OutputType error input output = output
A type synonym that lets you pick out just the output type from your form row.
#InputForm Source
type InputForm form = form Record InputField
A type synonym that represents a record with the input fields of a form.
#OutputForm Source
type OutputForm form = form Record OutputField
A type synonym that represents a record with the output fields of a form.