Ticket #135 (closed defect: fixed)
haddock stomps on existing .o and .hi files, breaking package builds
|Reported by:||duncan||Owned by:|
For packages using TemplateHaskell? haddock generates .o and .hi files. Unfortunately this overwrites existing files produced by the build system and breaks packages. This currently affects several packages that use TemplateHaskell? and Cabal.
Cabal can be modified to workaround this problem by telling haddock to use a separate directory for its temp files. A better solution would be for haddock to do this always and automatically. It should never overwrite the user's existing .o and .hi files. It is very surprising behaviour from a documentation tool. (Yes, I know the technical reasons why it does it at the moment, but it is still very surprising).
Related: comments in ticket #101.