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:
- Add support for the new plugin options to listen to the notifications that we want to listen for (
willRenameFile, didRenameFile, didDeleteFile).
- On
didRenameFile, change the cabal-file entry from the old module name to the new one.
- On
didRenameFile, change the module-declaration and imports of the renamed module from the old name to the new one.
- On
didDeleteFile delete the file from the diagnostics store .
- On
didRenameFile restart the shake session to get new diagnostics.
When I rename a Haskell module, I want the IDE to:
I will implement this in multiple PRs:
willRenameFile,didRenameFile,didDeleteFile).didRenameFile, change the cabal-file entry from the old module name to the new one.didRenameFile, change the module-declaration and imports of the renamed module from the old name to the new one.didDeleteFiledelete the file from the diagnostics store .didRenameFilerestart the shake session to get new diagnostics.