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
andpreValidatedField
-
functions
isNatural
andisPositiveInt
were refactored toisPositiveInt
-
name of function
apply
we rewrote onapplyValidity