[Hackage] #326: Cabal should support Cabal-version-dependent Setup.hs

Hackage trac at galois.com
Tue Aug 19 13:23:13 EDT 2008


#326: Cabal should support Cabal-version-dependent Setup.hs
----------------------------+-----------------------------------------------
  Reporter:  claus          |        Owner:         
      Type:  enhancement    |       Status:  new    
  Priority:  normal         |    Milestone:         
 Component:  Cabal library  |      Version:  1.2.3.0
  Severity:  normal         |   Resolution:         
  Keywords:                 |   Difficulty:  normal 
Ghcversion:  6.8.2          |     Platform:         
----------------------------+-----------------------------------------------
Comment (by duncan):

 Replying to [comment:8 claus]:

 > I don't understand? If I have a pragma in `Setup.hs` that enables CPP,
 and there is a macro giving the version number for the installed cabal
 package that `Setup.hs` is using, why would `runhaskell Setup` not work?

 You're right, if we also installed the .h file along with Cabal itself and
 put a suitable entry into the `include-dirs` for Cabal's registration then
 with a CPP pragma and a #include in your `Setup.hs` it would work for
 `runghc`. It would not work for hugs or nhc98 because hugs does not grok
 the CPP pragma and neither let us specify extra info like `include-dirs`
 in the package resistration, so even if they did cpp they would not be
 able to find the header file.

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


More information about the cabal-devel mailing list