gege251/elm-validator-pipeline/1.1.0

NOTE: the latest version is 3.0.0

Renamed to szg251/elm-validator-pipeline. That is where the repository lives now. It has not been published as a package under the new name.

Versions published as gege251/elm-validator-pipeline still install under that name. 5 versions of 5 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/szg251/elm-validator-pipeline.

What we checked: The repo moved to github.com/szg251/elm-validator-pipeline. Rebuilt with git archive from commit eaa6a30c7a8c of https://github.com/szg251/elm-validator-pipeline (zip prefix gege251-elm-validator-pipeline-eaa6a30/, America/Los_Angeles times): the zip is byte-identical to the one package.elm-lang.org recorded, SHA-1 e84d0576ee89748b90f08a0169d42751bf679778.

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/gege251/elm-validator-pipeline/zipball/1.1.0/

Validator.List

Validators for Lists.

minLength : String -> Int -> Validator (List a) (List a)

Checks if a list is longer than or equal to a given number

maxLength : String -> Int -> Validator (List a) (List a)

Checks if a list is shorter than or equal to a given number

every : Validator a a -> Validator (List a) (List a)

Checks if every item in a list passes the validation.

List.every (String.letterOnly "All items must be letters only") [ "abc", "def" ] == Ok [ "abc", "def" ]


List.every (String.letterOnly "All items must be letters only") [ "abc", "ab2c" ] == Err [ "All items must be letters only" ]