iodevs/elm-validate

A Elm validation library


Keywords
hacktoberfest
License
BSD-3-Clause
Install
elm-package install iodevs/elm-validate 1.1.0

Documentation

elm-validate

This library helps with validation of input forms and it's based on Enrico Buonanno lessons on egghead.io.

Install package usually a way:

elm-package install iodevs/elm-validate

Usage:

  • see example directory in this repository
  • or as live demo

Notes:

There is a couple of changes:

  • for composing two Validators we use (>&&) instead of (>=>)

  • we added a few functions: isFloat, isPositiveFloat, isInList, isUrl, isValidField and preValidatedField

  • functions isNatural and isPositiveInt were refactored to isPositiveInt

  • name of function apply we rewrote on applyValidity