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

Hackage trac at galois.com
Sun Jan 17 15:33:47 EST 2010


#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



More information about the cabal-devel mailing list