haskell / haskell/haskell-language-server

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

Open
#653 5 comments 3 reactions 0 assignees View on GitHub
component: hls-class-plugin type: enhancement
Dominant language
Haskell
Stars
3k
Forks
455
Avg merge
2d 19h
Merged PRs (30d)
11

Description

E.g. for a code-snippet

```haskell
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.

```haskell
data Bar = Bar

instance Show Bar where
show Bar = "Bar"
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.