stoeffel/elm-verify/2.0.1

NOTE: this package is not compatible with Elm 0.19.1

List.Verify

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]