Ticket #624 (closed defect: fixed)
"cabal haddock" should not break my build
|Reported by:||AntoineLatter||Owned by:|
See GHC bug 3799: http://hackage.haskell.org/trac/ghc/ticket/3799
With the package "syb-with-class" executing "cabal haddock" regenerates the .hi files and most of the .o files. It doesn't, however regenerate HSsyb-with-class.6.1.0.o.
Since syb-with-class exports top-level declarations generated by template haskell, they have a different name every time we compile.
So my (regenerated) .hi files exports names not in my .o file. If this happens during a "cabal install" we package up haddock's .hi files with the previously built HSsyb-with-class.6.1.0.o.
I'm not sure if this is a Cabal bug or a haddock bug (or a GHC bug?). Either way I thought I'd post it here so people are aware of it.
The work around is to turn off the auto-haddock option.