You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, i am mainly using cabal-fmt for its capabilities to add newly created modules to exposed-modules.
However, it does not work so well when I am moving modules around. cabal-fmt correctly adds the new name of the module to exposed-modules. The old name still persists and I have to delete it manually. It would be nice if cabal-fmt could also delete modules that no longer exist.
I am not sure about the specifics of the implementation. A solution would be to create an additional setting like -- cabal-fmt: expand src but for deleting module names; maybe -- cabal-fmt: clean src.
What do you think?
The text was updated successfully, but these errors were encountered:
Simre1
changed the title
Extend functionality of 'expand src' to also delete missing entries
Extend functionality of 'expand src' to also delete missing module names
Jul 14, 2022
If I understand correctly, it seems like the behavior of cabal-fmt already varies based on the way it is used?
Current behavior:
When formatting stdin, no modules are added
When formatting a file path, modules may be added
Desired behavior:
When formatting stdin, no modules are added or removed
When formatting a file path, modules may be added or removed
I haven't looked at the code here yet, but as a user of this program it's difficult to understand in what sense "machinery to know whether there are filesystem reading functions" doesn't already exist, given that the program's output does depend upon whether it has been called with context sufficient to let it find module files.
Hi, i am mainly using cabal-fmt for its capabilities to add newly created modules to exposed-modules.
However, it does not work so well when I am moving modules around. cabal-fmt correctly adds the new name of the module to exposed-modules. The old name still persists and I have to delete it manually. It would be nice if cabal-fmt could also delete modules that no longer exist.
I am not sure about the specifics of the implementation. A solution would be to create an additional setting like
-- cabal-fmt: expand src
but for deleting module names; maybe-- cabal-fmt: clean src
.What do you think?
The text was updated successfully, but these errors were encountered: