Dependency tracking (--make) broken for re-exported modules
Say, I re-export a module, from which I hide some bindings:
module B (module A) where import A hiding (a1)
A is defined thus:
module A where a1 = 5 a2 = 42 a3 = 113
module C where import B a2 = 142
ghc --make C.hs, observing redefinition error (of
Now hide also
B like this (by editing
module B (module A) where import A hiding (a1, a2)
C again, and observe that the error persists, because
B has not been rebuilt, and its interface file not regenerated.
B.hi and recompiling resolves the situation.