[Hackage] #230: setup haddock ignores LANGUAGE CPP pragma

Hackage trac at galois.com
Mon Feb 4 18:56:53 EST 2008


#230: setup haddock ignores LANGUAGE CPP pragma
----------------------------------+-----------------------------------------
  Reporter:  ross at soi.city.ac.uk  |        Owner:           
      Type:  defect               |       Status:  new      
  Priority:  normal               |    Milestone:  Cabal-2.0
 Component:  Cabal library        |      Version:  1.2.3.0  
  Severity:  normal               |   Resolution:           
  Keywords:                       |   Difficulty:  normal   
Ghcversion:  6.8.2                |     Platform:           
----------------------------------+-----------------------------------------
Changes (by duncan):

  * milestone:  => Cabal-2.0

Comment:

 Of course that's because it is GHC that interprets the `{-# LANGUAGE CPP
 #-}` pragma and not Cabal.

 Long term I think Cabal should notice `LANGUAGE` pragmas. It'd allow it to
 check that all extensions are declared in the `.cabal` file and it'd allow
 Cabal to do the cpping itself rather than using ghc's cpp.

 I'm assigning it to milestone 2.0 because it should be easy enough if
 we're already reading .hs files to do module chasing.

-- 
Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/230#comment:1>
Hackage <http://haskell.org/cabal/>
Hackage: Cabal and related projects


More information about the cabal-devel mailing list