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

Updates to docs to reflect new use of Result #28

Closed robertbasden closed 6 years ago

robertbasden commented 6 years ago

A few tweaks to README / comments to update them to reflect the new Result return from validate.

Previously this would just return a list of validation errors but this is now wrapped in Result and (if valid) Valid

rtfeldman commented 6 years ago

Nice!

Would you mind changing it to Ok and Err instead of Result.Ok and Result.Err? The former is the way I most commonly see those written. 😄

robertbasden commented 6 years ago

No problem! Have amended and pushed the update 👍