
18 Sep
2012
18 Sep
'12
8:43 a.m.
On Tue, Sep 18, 2012 at 12:05 PM, Henning Thielemann
I prefer the Cabal approach since it requires one (hacky) tool less in the tool chain. I use different Hs-Source-Dirs depending on a Cabal flag. With ghci you can choose the different modules using the -i option.
I have sympathy with this argument in general, but in this particular case CPP is used anyway, so that's not much of an argument. Where CPP is unavoidable, I'd always prefer the MIN_VERSION_ macros for doing this job.