stoeffel/elm-verify/1.0.0

NOTE: this package is not compatible with Elm 0.19.1

Verify.List

Functions to verify properties of a List.

notEmpty : error -> Validator error (List a) (List a)

Fails if a List is empty.

notEmpty "error" []
--> Err [ "error" ]


notEmpty "error" [1]
--> Ok [1]