Skip to content

Improve error reporting for incorrect sum tags. #23

@ejgallego

Description

@ejgallego

Dear sexplib developers,

I am using sexplib for interactive use, and it would be great to improve the error messages for incorrect sum types to include the alternative tags.

A possibility is to extend the function conv_error.ml:unexpected_stag to include an optional list of valid tags. Once that is done ppx_sexp_conv could provide this information.

Do you think this could make sense? I can provide a patch (in the public domain) if you think that would make a useful improvement.

Best regards, E.

Metadata

Metadata

Assignees

No one assigned

    Labels

    forwarded-to-js-devsThis report has been forwarded to Jane Street's internal review system.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions