-
Notifications
You must be signed in to change notification settings - Fork 90
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
Record tails in error messages are printed wrong #938
Comments
I guess the pretty printer is at fault, here |
It seems the pretty printer does the right thing:
It's probably the more ancient printer for error reporting? |
The problem seems to be that the |
Ah, indeed, it should use the pretty printer. Note that we have to make sure the output is strictly the same, because the error reporting code for contracts relies on knowing the exact number of characters (at least, for basic type constructors) and spacing to underline the right thing. Or maybe we can do things differently, to ensure that we underline the right thing in a more resilient way. |
This is fixed on |
Record tails in error messages are printed without a preceding
;
. E.g.The
{a}
should really be{; a}
in keeping with the surface syntax.The text was updated successfully, but these errors were encountered: