Ignore some tail-call optimization warnings.

This commit is contained in:
Dillon Kearns 2022-01-28 08:24:26 -08:00
parent 6660d918b7
commit aff333dd2b
2 changed files with 3 additions and 0 deletions

View File

@ -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

View File

@ -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