Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Validate.elm
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ module Validate exposing
[ ifBlank .name "Please enter a name."
, Validate.firstError
[ ifBlank .email "Please enter an email address."
, ifInvalidEmail .email "This is not a valid email address."
, ifInvalidEmail .email (\_ -> "This is not a valid email address.")
]
, ifNotInt .age "Age must be a whole number."
]
Expand Down Expand Up @@ -365,7 +365,7 @@ and returning it. If no errors are encountered, return `Nothing`.
Validate.all
[ Validate.firstError
[ ifBlank .email "Please enter an email address."
, ifInvalidEmail .email "This is not a valid email address."
, ifInvalidEmail .email (\_ -> "This is not a valid email address.")
]
, ifNotInt .age "Age must be a whole number."
]
Expand Down