Prettify global type variables for error messages

Open
#3 0 comments 0 reactions 1 assignee View on GitHub

@croyzor is already working on this.

Since Nov 20, 2024.

Assessment

This issue has not been assessed yet.

Description

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

Dominant language
Haskell
Stars
8
Forks
1
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Quantinuum/brat

All issues in Quantinuum/brat

Similar issues

More Haskell issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.