[Hackage] #230: setup haddock ignores LANGUAGE CPP pragma
Hackage
trac at galois.com
Mon Jun 9 19:54:19 EDT 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:
----------------------------------+-----------------------------------------
Comment (by duncan):
And of course we have the same problem with `{-# OPTIONS -fglasgow-exts
-cpp #-}` which is generated by `alex`. So even if you didn't realise you
use `CPP`, if you use `alex` then you do and then haddock fails because we
don't run `cpp` on that file. So if we go looking for `LANGUAGE` pragmas
then we'd also have to do the same for `OPTIONS` (and `OPTIONS_*`)
pragmas.
Seems that `getOptionsFromSource` gets those too which is nice. Perhaps we
should just do that for every file in builds and when haddocking.
--
Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/230#comment:3>
Hackage <http://haskell.org/cabal/>
Hackage: Cabal and related projects
More information about the cabal-devel
mailing list