Skip to content

Wingman: empty case code lens spurious appears for genuine empty-cases #1960

Closed
@isovector

Description

@isovector
absurd :: Void -> a
absurd v = case v of

has a Case split (Void) code action, but it shouldn't because there are actually no constructors here that can typecheck. This is an extremely easy fix, to just check not . null . tacticsGetDataCons before emitting the code lens.

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