Skip to content

More verbose error messages in oneOf #9

@kubukoz

Description

@kubukoz

I like the simplicity of the current error model (just a string is sometimes exactly what you want), but currently if a union fails to decode, you get virtually no information.

Combining the errors somehow would be great to have. Some ideas:

  • Either -> EitherNel (probably the most intrusive change)
  • ReadError as an ADT
  • just combining the strings to a larger string in the decoding logic for alternatives

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions