[Haskell-cafe] Cabal properties with conditionals

Manlio Perillo manlio_perillo at libero.it
Sat Mar 21 09:26:43 EDT 2009


Hi.

Assuming this configuration fragment:

library xxx
     cc-options:         -Wall

     if flag(HAVE_URANDOM)
         cc-options:    -DHAVE_URANDOM

In case the HAVE_URANDOM flag is defined, what will be the value of the 
used cc-options?
1) -DHAHE_URANDOM
2) -Wall -DHAHE_URANDOM


Thanks  Manlio


More information about the Haskell-Cafe mailing list