rtfeldman / elm-validate

Convenience functions for validating Elm data.
http://package.elm-lang.org/packages/rtfeldman/elm-validate/latest
BSD 3-Clause "New" or "Revised" License
145 stars 28 forks source link

Documentation shows use of isNotInt that disagrees with method signature #40

Open rosensama opened 5 years ago

rosensama commented 5 years ago

In the package documentation there are many examples for ifNotInt in the following form

    ifNotInt .age "Age must be a whole number."

But the signature expects the 2nd argument to be (String -> error), so all the examples yield a compile error of

This argument is a string of type:

    String

But `ifNotInt` needs the 2nd argument to be:

    String -> error
neocris commented 5 years ago

same for ifInvalidEmail