[Hackage] #624: "cabal haddock" should not break my build

#624: "cabal haddock" should not break my build ----------------------------+----------------------------------------------- Reporter: AntoineLatter | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: Cabal library | Version: 1.6.0.1 Severity: normal | Keywords: Difficulty: unknown | Ghcversion: Platform: | ----------------------------+----------------------------------------------- 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. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/624 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#624: "cabal haddock" should not break my build ----------------------------+----------------------------------------------- Reporter: AntoineLatter | Owner: Type: defect | Status: new Priority: normal | Milestone: Cabal-1.8 Component: Cabal library | Version: 1.6.0.1 Severity: normal | Keywords: Difficulty: unknown | Ghcversion: Platform: | ----------------------------+----------------------------------------------- Changes (by duncan): * milestone: => Cabal-1.8 Comment: Agreed. We should make sure we prevent haddock from stomping over existing .o or .hi files. The quick way would be to give it dummy hi and o dirs. A better way would be to get haddock to pick up the existing files, or if there are no existing files to always use bytecode and to never generate .hi or .o files. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/624#comment:1 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects
participants (1)
-
Hackage