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: Don't count it as using a term if you only destruct it #2099

Merged
merged 3 commits into from Aug 18, 2021

Conversation

isovector
Copy link
Collaborator

@isovector isovector commented Aug 16, 2021

Wingman stupidly pats itself on the back for destructing irrelevant terms. Instead, we now count usage only when you use it to construct a term, and transitively "use" all parents that helped produce the thing you're using.

Fixes #1467

@isovector isovector added the merge me Label to trigger pull request merge label Aug 17, 2021
@mergify mergify bot merged commit 38b6332 into haskell:master Aug 18, 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.

Wingman cheats when scoring unused enum types
2 participants