Skip to content

Wingman cheats when scoring unused enum types #1467

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

Closed
isovector opened this issue Mar 1, 2021 · 0 comments · Fixed by #2099
Closed

Wingman cheats when scoring unused enum types #1467

isovector opened this issue Mar 1, 2021 · 0 comments · Fixed by #2099
Labels

Comments

@isovector
Copy link
Collaborator

Peep this:

test :: Bool -> ()
test = _

Running auto produces

test :: Bool -> ()
test False = ()
test True = ()

We penalize unnecessary case matches AND unused bindings. So the search is cheating by making an unnecessary case match that doesn't introduce any new bindings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant