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

Wingman: Add "New Unification Variable" helper #2164

Merged
merged 9 commits into from
Sep 10, 2021

Conversation

isovector
Copy link
Collaborator

@isovector isovector commented Sep 7, 2021

Lots of things in Wingman need to create so-called "unification variables," which are type variable types that are not skolems. Unification variables will happily unify with anything, so they come up whenever Wingman needs to instantiate a polymorphic type, or let-generalize something.

When trying to write a test for #2160 I thought there was a bug in the unification variables created by the new let binding stuff. But it was hard to track down, because every call site that needed unification variables would spin them up by itself --- lots of room for error.

This PR makes a combinator for creating fresh unification variables.

@isovector isovector added the merge me Label to trigger pull request merge label Sep 7, 2021
@isovector
Copy link
Collaborator Author

Maybe one day CI will let this merge...

@mergify mergify bot merged commit 0ca9093 into haskell:master Sep 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge me Label to trigger pull request merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants