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

Don't suggest destruct actions for already-destructed terms #1715

Merged
merged 18 commits into from
Apr 13, 2021

Conversation

isovector
Copy link
Collaborator

This PR does an extra pass over the existing function definition, looking for case expressions that scrutinize a single variable. Every one it finds gets removed from Wingman's allowed hypothesis set, which effectively removes it from participating in anything that Wingman does. This includes the "destruct" code action.

Fixes #1711

Copy link
Member

@jneira jneira left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@isovector isovector added the merge me Label to trigger pull request merge label Apr 12, 2021
@mergify mergify bot merged commit d2bb0d9 into haskell:master Apr 13, 2021
@isovector isovector deleted the more-user-provenance branch May 21, 2021 16:37
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.

Wingman shouldn't suggest destruct actions for things that are already destructed
2 participants