8000 Fix an issue with the effect variable linearizing patch by dolio · Pull Request #2907 · unisonweb/unison · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix an issue with the effect variable linearizing patch #2907

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

Merged
merged 2 commits into from
Feb 16, 2022

Conversation

dolio
Copy link
Contributor
@dolio dolio commented Feb 16, 2022

The rewriting was accidentally inserting empty row in every spot without an ability variable. Since this is how the type system tells the arity of an effect in an ability in some spots, it was breaking that. It's possible it caused other issues, too.

The rewriting was introducing empty effect lists, but this is a problem
for effect signatures in an ability, which rely on there not being any
effect ascriptions except the one for the ability being defined on the
arrow spine. E.G.

    a -> b -> c ->{A} d

is okay, but:

    a ->{} b ->{} c ->{A} d

appears like the main effect happens on the first arrow to the checker.
@pchiusano pchiusano added the ready-to-merge Apply this to a PR and it will get merged automatically once CI passes and 1 reviewer has approved label Feb 16, 2022
@mergify mergify bot merged commit 8d53ce3 into trunk Feb 16, 2022
@mergify mergify bot deleted the fix/nonlinear-effects branch February 16, 2022 16:19
@mergify mergify bot removed the ready-to-merge Apply this to a PR and it will get merged automatically once CI passes and 1 reviewer has approved label Feb 16, 2022
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.

2 participants
0