Skip to content
New issue

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

Add a new ParseError constructor "TriedMultiple" #26

Closed
5 tasks done
mlms13 opened this issue Jan 23, 2019 · 0 comments
Closed
5 tasks done

Add a new ParseError constructor "TriedMultiple" #26

mlms13 opened this issue Jan 23, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@mlms13
Copy link
Owner

mlms13 commented Jan 23, 2019

This constructor should be used when we attempt multiple decoders for a single value and all fail (for example oneOf, which currently only tracks the final failure).

  • Construct this with a NonEmptyList of parse errors
  • Use this for oneOf
  • Use this for Decode.alt if that exists?
  • Update ParseError docs
  • Probably tests, I guess 😛
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant