We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, I've run into an error I can't seem to get around -- could just be me, but here is a stripped down version. The problem arises with code like
decodeItem : Decoder ( String, Int ) decodeItem = Decode.string |> Decode.andThen baz
I've reduced baz to a bare minimum, so that it always succeeds, always returning the same thing:
baz
baz : String -> Decoder ( String, number ) baz = \s -> Decode.succeed ( "Test", 88 )
Here is the error:
↓ VerifyExamples.Yaml.DecodeItem0 ✗ #decodeItem: Decode.fromString decodeItem "(Test:88)" --> Ok ("Test", 88) Ok ("Test",88) ╷ │ Expect.equal ╵ Err (Parsing "TODO deadEndsToString")
And here is the test code:
{-| import Yaml.Decode as Decode exposing (Decoder) Decode.fromString decodeItem "(Test:88)" --> Ok ("Test", 88) -} decodeItem : Decoder ( String, Int ) decodeItem = Decode.string |> Decode.andThen baz
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi, I've run into an error I can't seem to get around -- could just be me, but here is a stripped down version. The problem arises with code like
I've reduced
baz
to a bare minimum, so that it always succeeds, always returning the same thing:Here is the error:
And here is the test code:
The text was updated successfully, but these errors were encountered: