yoghurt-x86 / easy-forms / Form.Internals

This module is only used internally by this package

It is exposed so form packages for elm-css and elm-ui can be implemented with the same logic

formView : Form.Field.Field valid a state msg error ctx localCtx html8 -> { formRecord | view : ctx -> valid -> List html6 } -> ((Form.Field.FieldMsg msg -> continue) -> html8 -> html5) -> ((form -> continue) -> html6 -> html5) -> ({ formRecord | view : ctx -> valid -> List html6 } -> form) -> (Form.Field.Field valid a state msg error ctx localCtx html8 -> form -> continue) -> ctx -> valid -> List html5

Called every draw

hardcodedField : Result hint fieldval -> { form | validated : ctx -> val -> Result form2 (fieldval -> validated) } -> ({ form | validated : ctx -> val -> Result form2 (fieldval -> validated) } -> form2) -> (form2 -> continue) -> ctx -> val -> Result continue validated

hardcoded field

hardcodedView : { formRecord | view : ctx -> valid -> List html6 } -> ((form -> continue) -> html6 -> html5) -> (form -> continue) -> ctx -> valid -> List html5

Called every view

updateField : ctx -> valid -> Result error b -> Form.Field.FieldMsg msg -> formRecord -> (formRecord -> form) -> Form.Field.Field valid a state msg error ctx localCtx html -> (Form.Field.Field valid a state msg error ctx localCtx html -> form -> continue) -> continue

Called every updated

validateField : Result hint fieldval -> { form | validated : ctx -> val -> Result form2 (fieldval -> validated) } -> ({ form | validated : ctx -> val -> Result form2 (fieldval -> validated) } -> form2) -> Form.Field.Field val value state msg hint ctx lctx html -> (Form.Field.Field val value state msg hint ctx lctx html -> form2 -> continue) -> ctx -> val -> Result continue validated

Validate field