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

Prettify global type variables for error messages #3

Open
croyzor opened this issue Jul 25, 2024 · 0 comments · May be fixed by #54
Open

Prettify global type variables for error messages #3

croyzor opened this issue Jul 25, 2024 · 0 comments · May be fixed by #54
Assignees

Comments

@croyzor
Copy link
Collaborator

croyzor commented Jul 25, 2024

Related to #20, in that this should be triggered with a --verbose-errors flag.

Types containing global variables of the form VPar a.b.c.d.e_1 0 are useful to us, but just line noise for end users. We should try to keep track of where these variables are defined from. I suspect there's often a good name in terms of user variables.

I.e. if a user binds a type variable (:: #) as n, we should call references to it n in error messages. If a user writes succ(n), we should print out n and n + 1 as appropriate

@croyzor croyzor linked a pull request Nov 11, 2024 that will close this issue
@croyzor croyzor self-assigned this Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant