
22 Mar
2015
22 Mar
'15
10:40 a.m.
Tom Ellis wrote:
It's disappointing if CPP is the only way to handle this transation.
Glad that there is a compat package (and thanks for offering to create one). I agree that it's the best way. But even without a compat package, it is not necessary to use CPP even within the same package, and in my opinion better to avoid it. You can use cabal conditionals directly without going via CPP. The trick is that put your two different imports in modules with the same name in two separate source directories, and in cabal include one hs-source-dir or the other conditionally. Regards, Yitz