[Hackage] #495: feature request: top-level if statements

Hackage trac at galois.com
Mon Feb 9 16:18:31 EST 2009


#495: feature request: top-level if statements
----------------------------+-----------------------------------------------
  Reporter:  awick          |        Owner:         
      Type:  enhancement    |       Status:  new    
  Priority:  normal         |    Milestone:         
 Component:  Cabal library  |      Version:  1.6.0.1
  Severity:  normal         |     Keywords:         
Difficulty:  unknown        |   Ghcversion:  6.10.1 
  Platform:                 |  
----------------------------+-----------------------------------------------
 It would be really, really handy for us to be able to use top-level if
 constructs, such as:

 {{{
 if os(linux)
   executable run-tests
   main-is: ...
   ghc-options: ...

 if os(foo)
   executable program
   main-is: ...
   ghc-options: ...
 }}}

 (Specifically, we need it in cases like this, where tests run on a
 different OS than the code will be run on.)

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


More information about the cabal-devel mailing list