mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-11-28 23:12:22 +03:00
Remove completed todos.
This commit is contained in:
parent
e191b1c870
commit
e00a927790
@ -104,21 +104,18 @@ parseWithError parsed ( key, error ) =
|
|||||||
{-| -}
|
{-| -}
|
||||||
fail : error -> Field error parsed1 field -> Combined error parsed
|
fail : error -> Field error parsed1 field -> Combined error parsed
|
||||||
fail parsed (Validation _ key _) =
|
fail parsed (Validation _ key _) =
|
||||||
-- TODO need to prevent Never fields from being used
|
|
||||||
Validation Nothing Nothing ( Nothing, Dict.singleton (key |> Maybe.withDefault "") [ parsed ] )
|
Validation Nothing Nothing ( Nothing, Dict.singleton (key |> Maybe.withDefault "") [ parsed ] )
|
||||||
|
|
||||||
|
|
||||||
{-| -}
|
{-| -}
|
||||||
withError : Field error parsed1 field -> error -> Validation error parsed2 named constraints -> Validation error parsed2 named constraints
|
withError : Field error parsed1 field -> error -> Validation error parsed2 named constraints -> Validation error parsed2 named constraints
|
||||||
withError (Validation _ key _) error (Validation viewField name ( maybeParsedA, errorsA )) =
|
withError (Validation _ key _) error (Validation viewField name ( maybeParsedA, errorsA )) =
|
||||||
-- TODO need to prevent Never fields from being used
|
|
||||||
Validation viewField name ( maybeParsedA, errorsA |> insertIfNonempty (key |> Maybe.withDefault "") [ error ] )
|
Validation viewField name ( maybeParsedA, errorsA |> insertIfNonempty (key |> Maybe.withDefault "") [ error ] )
|
||||||
|
|
||||||
|
|
||||||
{-| -}
|
{-| -}
|
||||||
withErrorIf : Bool -> Field error ignored field -> error -> Validation error parsed named constraints -> Validation error parsed named constraints
|
withErrorIf : Bool -> Field error ignored field -> error -> Validation error parsed named constraints -> Validation error parsed named constraints
|
||||||
withErrorIf includeError (Validation _ key _) error (Validation viewField name ( maybeParsedA, errorsA )) =
|
withErrorIf includeError (Validation _ key _) error (Validation viewField name ( maybeParsedA, errorsA )) =
|
||||||
-- TODO use something like { field : kind } for type variable to check that it represents a field
|
|
||||||
Validation viewField
|
Validation viewField
|
||||||
name
|
name
|
||||||
( maybeParsedA
|
( maybeParsedA
|
||||||
|
Loading…
Reference in New Issue
Block a user