Skip to content

Add code-action to turn derived type-class into its implementation #653

Open
@fendor

Description

@fendor

E.g. for a code-snippet

data Bar = Bar deriving (Show)

I would like to be able to generate roughly what this deriving desugars to.
Ideally, (don't know about the specifics) only the implementation that are not default, e.g.

data Bar = Bar

instance Show Bar where 
  show Bar = "Bar"

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