Cabal build depends and if cpp-options

Gracjan Polak gracjanpolak at gmail.com
Tue Feb 9 10:43:29 EST 2010


Hi,

I'd like to do something like this in cabal:


Library
    Build-depends: base >= 3 && <= 5
    if (base==4.*)
        cpp-options: -DUSE_BASE_4
    else
        cpp-options: -DUSE_BASE_3


Is there a way to use the if construct that check what version of dependent
package has been chosen?

-- 
Gracjan




More information about the Libraries mailing list