Skip to content

Unflatten constraints on GHC 9.0 and below#18

Merged
sheaf merged 1 commit intomainfrom
unflatten
Sep 15, 2025
Merged

Unflatten constraints on GHC 9.0 and below#18
sheaf merged 1 commit intomainfrom
unflatten

Conversation

@sheaf
Copy link
Owner

@sheaf sheaf commented Sep 15, 2025

This unflattens all constraints before passing them to typechecking plugins. This means that typechecker plugins see the same kind of constraints on GHC 9.0 and after. One little wrinkle is that this means plugins can see CNonCanonical constraints now, because F a b ~ c is not a valid canonical constraint on GHC 9.0 and below.

@sheaf sheaf merged commit a36ec9f into main Sep 15, 2025
11 checks passed
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