PerformanceIMMO/elm-utils/3.1.0

NOTE: the latest version is 5.5.0

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

Versions published as PerformanceIMMO/elm-utils still install under that name. 24 versions of 25 come from the new location (see their notes). 1 version could not be recovered and cannot be installed.

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/SquirclesIO/elm-utils.

What we checked: The repo moved to github.com/SquirclesIO/elm-utils. Rebuilt with git archive from commit b2a99ea7475a of https://github.com/SquirclesIO/elm-utils (zip prefix PerformanceIMMO-elm-utils-b2a99ea/, America/Los_Angeles times): the zip is byte-identical to the one package.elm-lang.org recorded, SHA-1 7c9e0cd43f64f431da98dd8d33858b2ef2a081ce.

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/PerformanceIMMO/elm-utils/zipball/3.1.0/

Perfimmo.Form.FormField.Common

Common

type FormFieldInfo decoration
= FieldIsMandatory
| CustomDecorator decoration (SubComparator decoration)

Add info to your field that you will could use to decorate it after

type FormFieldInfo decoration =
    -- the field is mandatory
    FieldIsMandatory
    -- Allow to add custom decoration to field.
    | CustomDecorator decoration (SubComparator decoration)
formFieldComparable : FormFieldInfo decoration -> String

formFieldComparable

List (FormFieldInfo decoration)
-> List (FormFieldInfo decoration)

initFormFieldInfos

List (FormFieldInfo decoration)
-> FormFieldInfo decoration
-> List (FormFieldInfo decoration)

addFormFieldInfo

List (FormFieldInfo decoration)
-> FormFieldInfo decoration
-> List (FormFieldInfo decoration)

removeFormFieldInfo

type alias SubComparator a =
a -> String

a function that allow to compare decorator (cf. formFieldComparable) between them. Useful to {add, remove} FormFieldInfo decoration {to,from} field.