Plugins and recompilation of modules
I discovered that when a plugin is enabled, ghc will rebuild all modules even if only the top level module changed.
I created a minimal example to reproduce this issue, see the repo.
If I compile both modules:
B, then I modify the top level one (
B) and then recompiles again what GHC will do depends whether the plugin is enabled or not. In the first case it only recompiles the modified module, in the other case it will recompile both modules. I checked that for the
pluginRecompile set to either of the two: