[Hackage] #238: haddock2 is not passed -D__HADDOCK__ or cpp-options

Hackage trac at galois.com
Wed Feb 13 11:02:35 EST 2008

#238: haddock2 is not passed -D__HADDOCK__ or cpp-options
  Reporter:  ross at soi.city.ac.uk  |        Owner:         
      Type:  defect               |       Status:  new    
  Priority:  normal               |    Milestone:         
 Component:  Cabal library        |      Version:
  Severity:  normal               |     Keywords:         
Difficulty:  normal               |   Ghcversion:  6.8.2  
  Platform:                       |  
 With haddock-1, Cabal invokes cpp, passing it ARCH and OS defines,
 -D__HADDOCK__ and the contents of cpp-options. However haddock-2 invokes
 cpp itself via the GHC API, which passes this cpp the ARCH and OS defines,
 but it doesn't get the others.

 It might also be a good idea to give __HADDOCK__ a numeric value, because
 GHC extensions need not be hidden from the new one.

Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/238>
Hackage <http://haskell.org/cabal/>
Hackage: Cabal and related projects

More information about the cabal-devel mailing list