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

Hackage trac at galois.com
Mon Aug 18 08:44:19 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 claus):

 shouldn't that be:
 {{{
 #ifdef MIN_VERSION_CABAL
 #if MIN_VERSION_CABAL(1,6,0) && !MIN_VERSION_CABAL(1,7,0)

 -- stuff for 1.6

 #else

 -- not supported/not yet tested

 #endif
 #else

 -- stuff for 1.4

 #endif
 }}}

 But yes, those macros should help. So much so that it might be good to
 advertize their existence to library authors/hackage users, to start
 reducing `Setup` compile errors.

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


More information about the cabal-devel mailing list