[Haskell-cafe] Cabal: Disjunctive Build-Depends

Matthew Farkas-Dyck strake888 at gmail.com
Mon Dec 12 21:25:42 CET 2011


Hello all.

I have written some code that can be compiled with either of two
libraries, with no modification. How can I tell Cabal?

I tried "||" but it failed to parse.

I could find which package is available in the build script, and then
call defaultMainNoRead with the appropriate GenericPackageDescription,
but I'm not sure how to find this system-agnostically.

Thanks for any help.

Cheers,
Matthew Farkas-Dyck



More information about the Haskell-Cafe mailing list