Ticket #624 (closed defect: fixed)
"cabal haddock" should not break my build
| Reported by: | AntoineLatter | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Cabal-1.8 |
| Component: | Cabal library | Version: | 1.6.0.1 |
| Severity: | normal | Keywords: | |
| Cc: | Difficulty: | unknown | |
| GHC Version: | Platform: |
Description
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.
