Idris2
Idris2 copied to clipboard
[ fix ] Remove type constructor tags
Description
Currently, the type constructor tag is always 100. In fact, they are not used. Therefore, I propose to remove them and also fix several related bugs.
Commits:
- Fixed a bug that prevented the tag counter from increasing
- Fixed irrefutable pattern with type in index
- Fixed checking for emptiness of type with type in index. This is the only place where type constructors are compared by tags. But they are unique only within the module. Therefore, type constructors should be compared by name, as in all other places.
- Type constructor tags have been removed because they are not suitable for comparison and are no longer used.
- Remove some boilerplate.
Should this change go in the CHANGELOG?
- [ ] If this is a fix, user-facing change, a compiler change, or a new paper
implementation, I have updated
CHANGELOG_NEXT.md(and potentially alsoCONTRIBUTORS.md).
Also, tags removed in Yaffle https://github.com/edwinb/Yaffle/commit/f26c9a0e8463e04730bf1af63410e9c6ff8290e3#diff-ba25068d28a398c3bade02a547922670d11ca8845d0e54a9ed9b180e9d76b702
I just noticed the failing test but I'm not on The computer. I'll look into this later
Ah right the fix is already availabe on the LSP side cool let's do it