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

dMatchUpSAKWithDecl: Fix treatment of invisible foralls without corresponding @-binders #230

Merged
merged 2 commits into from
Jul 16, 2024

Conversation

RyanGlScott
Copy link
Collaborator

After this patch, dMatchUpSAKWithDecl is now able to handle a standalone kind signature with an invisible forall without a corresponding @-binder, as seen in the example below:

type D :: forall (a :: Type). Type
data D

While I was in town, I did some code cleanup in dMatchUpSAKWithDecl to make sure that all of the various error conditions are checked more thoroughly, documenting what parts of the code rely on which preconditions more precisely. I also applied the same treatment to matchUpSAKWithDecl.

Fixes #228.

…sponding @-binders

After this patch, `dMatchUpSAKWithDecl` is now able to handle a standalone kind
signature with an invisible `forall` without a corresponding `@`-binder, as
seen in the example below:

```hs
type D :: forall (a :: Type). Type
data D
```

While I was in town, I did some code cleanup in `dMatchUpSAKWithDecl` to make
sure that all of the various error conditions are checked more thoroughly,
documenting what parts of the code rely on which preconditions more precisely.
I also applied the same treatment to `matchUpSAKWithDecl`.

Fixes #228.
@RyanGlScott RyanGlScott merged commit df957ef into master Jul 16, 2024
24 checks passed
@RyanGlScott RyanGlScott deleted the T228-matchUpSAKWithDecl-invisible branch July 16, 2024 10:40
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.

dMatchUpSAKWithDecl erroneously rejects invisible forall without corresponding invisible type variable binder
1 participant