haskell / haskell/haskell-language-server
Add code-action to turn derived type-class into its implementation
オープン
component: hls-class-plugin
type: enhancement
- 主要言語
- Haskell
- スター
- 3k
- フォーク
- 455
- 平均マージ
- 3日 21時間
- マージ済み PR(30日)
- 13
説明
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"
```
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
まず、要求された Haskell の例と、派生した Show インスタンスを明示的な実装に展開する方法を理解します。この issue ではファイル、テスト、エントリポイントが指定されていないため、最初に関連する code action の経路と既存のテスト規約を見つける必要があります。適切な場合にデフォルト実装を省略しつつ、deriving 節を要求されたインスタンスに変換する code action を提供できれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- haskell
- 領域
- devtools
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100