Skip to content

case split on case of statement with no destructor cases declared #1716

@santiweight

Description

@santiweight

This isn't exactly Wingman, but I think @isovector is probably the man for the job (?) given what he's been working on...

case my expr of

In this case, we'll get some errors about allow "empty-case" and add "EmptyCase" etc.

My suggestion: to add a code action that inserts empty case destructors:

case myMaybeValue of

becomes

case myMaybeValue of
   Nothing -> _
   Just val -> _

and now the same Wingman workflows are recovered.

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