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.
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_stagto include an optional list of valid tags. Once that is doneppx_sexp_convcould 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.