Skip to content

Wingman incorrectly ignores skolems when dealing with GADT evidence #2171

@isovector

Description

@isovector

Wingman uses dataConCannotMatch from GHC to check when it should filter out GADT data cons. But dataConCannotMatch only checks if two type indices certainly can't match. But if one of them is a skolem, GHC doesn't know this, and thinks it's merely a type variable. In which case, it could match, but we know better.

Metadata

Metadata

Assignees

No one assigned

    Labels

    component: wingmantype: bugSomething isn't right: doesn't work as intended, documentation is missing/outdated, etc..

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions