Skip to content

Fix bug in constructEquivClasses#15

Merged
sheaf merged 1 commit intomainfrom
equiv
Aug 27, 2025
Merged

Fix bug in constructEquivClasses#15
sheaf merged 1 commit intomainfrom
equiv

Conversation

@sheaf
Copy link
Owner

@sheaf sheaf commented Aug 26, 2025

This fixes a bug in constructEquivClasses in which we failed to use equivalences in both directions. It also refactors that function to use IntMaps rather than Maps. For the case we were working with, TyVars, we were already comparing based on the Uniques, so we might as well use the appropriate data structures.

@sheaf sheaf force-pushed the equiv branch 3 times, most recently from 3233000 to 22b67f1 Compare August 27, 2025 16:24
@sheaf sheaf changed the title WIP: fix bug in constructEquivClasses Fix bug in constructEquivClasses Aug 27, 2025
This commit fixes a bug in constructEquivClasses in which we failed to
use equivalences in both directions.
It also refactors that function to use IntMaps rather than Maps.
For the case we were working with, TyVars, we were already comparing
based on the Uniques, so we might as well use the appropriate data
structures.
@sheaf sheaf merged commit 76f82bd into main Aug 27, 2025
11 checks passed
@sheaf sheaf deleted the equiv branch August 27, 2025 21:33
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 this pull request may close these issues.

1 participant

Comments