mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-12-29 14:56:36 +03:00
Ignore some tail-call optimization warnings.
This commit is contained in:
parent
6660d918b7
commit
aff333dd2b
@ -10,6 +10,7 @@ toJson (Pattern segments _) =
|
||||
|
||||
segmentToJson : Segment -> Json.Encode.Value
|
||||
segmentToJson segment =
|
||||
-- elm-review: known-unoptimized-recursion
|
||||
case segment of
|
||||
Literal literalString ->
|
||||
Json.Encode.object
|
||||
|
@ -75,6 +75,7 @@ type Request decodesTo
|
||||
|
||||
oneOfInternal : List ValidationError -> List (Json.Decode.Decoder ( Result ValidationError decodesTo, List ValidationError )) -> Json.Decode.Decoder ( Result ValidationError decodesTo, List ValidationError )
|
||||
oneOfInternal previousErrors optimizedDecoders =
|
||||
-- elm-review: known-unoptimized-recursion
|
||||
case optimizedDecoders of
|
||||
[] ->
|
||||
Json.Decode.succeed ( Err (OneOf previousErrors), [] )
|
||||
@ -157,6 +158,7 @@ errorsToString validationErrors =
|
||||
-}
|
||||
errorToString : ValidationError -> String
|
||||
errorToString validationError =
|
||||
-- elm-review: known-unoptimized-recursion
|
||||
case validationError of
|
||||
ValidationError message ->
|
||||
message
|
||||
|
Loading…
Reference in New Issue
Block a user