[Haskell-cafe] Conditional compilation

Henning Thielemann lemming at henning-thielemann.de
Fri Mar 27 20:52:34 EDT 2009

On Fri, 27 Mar 2009, Robin Green wrote:

> I am writing some code for citation support in gitit, and all the
> #ifdefs I'm using to do conditional compilation are a bit tiresome.

I live well without CPP in Haskell. When I need conditional compilation I 
create two directories with modules of the same names in it. Then I set 
Hs-Source-Dirs conditionally in Cabal.

More information about the Haskell-Cafe mailing list