[Haskell-cafe] time and TimeLocale compatibility
Yitzchak Gale
gale at sefer.org
Sun Mar 22 14:40:16 UTC 2015
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
More information about the Haskell-Cafe
mailing list