kutyel/elm-form/1.0.0

Renamed to scrive/elm-form. It is published under that name, and new versions come out there.

Versions published as kutyel/elm-form still install under that name. 1 version of 1 come from the new location (see their notes).

Rerouted (renamed, verified). The GitHub user or repository was renamed. The tag is still there, at the new name. The Lamdera package server serves a copy recovered from https://github.com/scrive/elm-form.

What we checked: The repo moved to github.com/scrive/elm-form. Rebuilt with git archive from commit 36826458dd77 of https://github.com/scrive/elm-form (zip prefix kutyel-elm-form-3682645/, America/Los_Angeles times): the zip is byte-identical to the one package.elm-lang.org recorded, SHA-1 fb9d51c1d4d0daaf65a2aa4c5e28dfbf14ccaceb.

The Lamdera compiler uses this copy and prints a one-line notice saying so. elm itself fails to download this version.

Details · package.elm-lang.org's zip: https://github.com/kutyel/elm-form/zipball/1.0.0/

Form.Field

Read and write field values.

Constructors

type alias Field =

A field is a tree node.

= String String
| Bool Bool
| EmptyField

Form field. Can either be a group of named fields, or a final field.

value : FieldValue -> Field

Build a field from its value.

string : String -> Field

Build a string field, for text inputs, selects, etc.

bool : Bool -> Field

Build a boolean field, for checkboxes.

group : List ( String, Field ) -> Field

Gather named fields as a group field.

list : List Field -> Field

Gather fields as a list field.

Value readers

asString : Field -> Maybe String

Get field value as string.

asBool : Field -> Maybe Bool

Get field value as boolean.