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

Pull Wingman's method hypotheses directly from in-scope dicts #1517

Merged
merged 9 commits into from Mar 8, 2021

Conversation

isovector
Copy link
Collaborator

@isovector isovector commented Mar 7, 2021

Wingman used to do some roundabout lookup to try to guess what methods were currently in scope. It would do this by looking at the currently-defined function, and then trying to find its poly type, and then parsing the theta out of that.

This new approach instead just finds any AbsBinds that enclose the current hole, and picks all of the dictionaries up from there. This more reliably finds methods, like from instance contexts and superclasses.

Fixes #1346

@isovector isovector added the merge me Label to trigger pull request merge label Mar 8, 2021
@mergify mergify bot merged commit 16adab7 into haskell:master Mar 8, 2021
@isovector isovector deleted the theta branch April 5, 2021 11:46
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.

Tactics plugin doesn't correctly get the theta type when defining class methods
2 participants