haskell / haskell/haskell-language-server

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

未關閉
#653 5 則留言 3 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

component: hls-class-plugin type: enhancement
主要語言
Haskell
星號
3k
分支
456
平均合併
3 天 6 小時
30 天內合併 PR
16

描述

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"

貢獻指南

這個儲存庫沒有索引到貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

研究方向

首先理解所要求的 Haskell 範例,以及應如何將衍生的 Show 實例展開為明確實作。該 issue 未指明檔案、測試或進入點,因此必須先找到相關的 code action 路徑與現有的測試慣例。完成的標準是提供一個 code action,將 deriving 子句轉換為所要求的實例,並在適當時省略預設實作。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
haskell
領域
devtools
Issue 類型
功能
難度
5/5
預估耗時
一週以上
活躍度
停滯
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。