[Haskell-cafe] Cabal properties with conditionals

Manlio Perillo manlio_perillo at libero.it
Sat Mar 21 18:05:45 EDT 2009


Duncan Coutts ha scritto:
> On Sat, 2009-03-21 at 14:26 +0100, Manlio Perillo wrote:
>> 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
> 
> The latter. Try it.
> 
> In general all fields get `mappend`ed which for list-like fields means
> appending. For single value fields like True/False then latter fields
> win.
> 

Ok, thanks.


P.S: I tried to send an email to cabal-devel some days ago, with a 
feature I would like to see in Cabal.
But the mail was never posted to the mailing list.
Is that list moderated?
Should I simply fill a ticket?


> Duncan
> 


Manlio


More information about the Haskell-Cafe mailing list