mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-11-23 14:15:33 +03:00
Change argument order.
This commit is contained in:
parent
67972fb945
commit
fb8e23e5b6
@ -234,7 +234,8 @@ form =
|
||||
Validation.succeed ( passwordValue, passwordConfirmationValue )
|
||||
|
||||
else
|
||||
Validation.fail passwordConfirmation "Must match password"
|
||||
passwordConfirmation
|
||||
|> Validation.fail "Must match password"
|
||||
)
|
||||
password
|
||||
passwordConfirmation
|
||||
|
@ -153,7 +153,8 @@ dependentParser =
|
||||
Validation.succeed passwordValue
|
||||
|
||||
else
|
||||
Validation.fail passwordConfirmation "Must match password"
|
||||
passwordConfirmation
|
||||
|> Validation.fail "Must match password"
|
||||
)
|
||||
password
|
||||
passwordConfirmation
|
||||
|
@ -102,8 +102,8 @@ parseWithError parsed ( key, error ) =
|
||||
|
||||
|
||||
{-| -}
|
||||
fail : Field error parsed1 field -> error -> Combined error parsed
|
||||
fail (Validation _ key _) parsed =
|
||||
fail : error -> Field error parsed1 field -> Combined error parsed
|
||||
fail parsed (Validation _ key _) =
|
||||
-- TODO need to prevent Never fields from being used
|
||||
Validation Nothing Nothing ( Nothing, Dict.singleton (key |> Maybe.withDefault "") [ parsed ] )
|
||||
|
||||
|
@ -250,7 +250,8 @@ all =
|
||||
Validation.succeed { password = passwordValue }
|
||||
|
||||
else
|
||||
Validation.fail passwordConfirmation "Must match password"
|
||||
passwordConfirmation
|
||||
|> Validation.fail "Must match password"
|
||||
)
|
||||
|> Validation.andMap password
|
||||
|> Validation.andMap passwordConfirmation
|
||||
|
Loading…
Reference in New Issue
Block a user