
12 Dec
2011
12 Dec
'11
3:25 p.m.
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