Skip to content

Support for renaming of Haskell modules #4951

Description

@VeryMilkyJoe

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions