intellij-haskforce icon indicating copy to clipboard operation
intellij-haskforce copied to clipboard

'Renaming' module/folder issue(s)

Open KasperJanssens opened this issue 10 years ago • 2 comments

Rename has some issues

  • Renaming a module in the project explorer (file name) doesn't rename the module name in the file itself
  • Renaming a 'folder' in the project explorer doesn't rename the module itself
  • Renaming a module in the file doesn't rename the file name

(I think these can be done safely as to my knowledge haskell requires the file name and the module name to be the same, and contain only one module)

KasperJanssens avatar Dec 22 '14 12:12 KasperJanssens

The last issue seems scoping-related and that is different on a technical level. Create a new ticket for that and remove that bullet from this ticket please.

I'm not sure what the standard says about module names but I seem to recall that at least Main has some special status.

pjonsson avatar Dec 22 '14 13:12 pjonsson

Yes, might be that Main has a special status, I think you can have a module named Main that's not in a file named Main or so. Anyhow, I think the 'rename' refactor should at least leave the code as 'compilable' as it found it.

KasperJanssens avatar Dec 22 '14 21:12 KasperJanssens