Skip to content

Wingman cheats when scoring unused enum types #1467

Closed
@isovector

Description

@isovector

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions