haskell / haskell/haskell-language-server
Support for renaming of Haskell modules
- Dominant language
- Haskell
- Stars
- 3k
- Forks
- 455
- Avg merge
- 4d 3h
- Merged PRs (30d)
- 12
Description
When I rename a Haskell module, I want the IDE to:
* change the module declaration to the new name
* change all imports of that module to the new name
* edit the cabal file by changing the entry of that file to the new name
I will implement this in multiple PRs:
1) Add support for the new plugin options to listen to the notifications that we want to listen for (`willRenameFile`, `didRenameFile`, `didDeleteFile`).
2) On `didRenameFile`, change the cabal-file entry from the old module name to the new one.
3) On `didRenameFile`, change the module-declaration and imports of the renamed module from the old name to the new one.
4) On `didDeleteFile` delete the file from the diagnostics store .
5) On `didRenameFile` restart the shake session to get new diagnostics.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.