haskell / haskell-language-server

Official haskell ide support via language server (LSP). Successor of ghcide & haskell-ide-engine.
Apache License 2.0
2.65k stars 355 forks source link

Implement some of Scala Metals' code actions #3358

Open santiweight opened 1 year ago

santiweight commented 1 year ago

Pretty open ticket. Link to Metals' CodeActions section


Here is a code action that seems like low-hanging fruit!

We could have a similar action, where if an upper-case symbol is undefined, we generate a template for a datatype with that name.

santiweight commented 1 year ago

Define datatype now implemented here:

https://github.com/santiweight/haskell-language-server/tree/define-not-in-scope-datatype