[Haskell-cafe] Re: Conditional compilation of Setup.hs
duncan.coutts at worc.ox.ac.uk
Tue Jul 31 09:57:04 EDT 2007
On Tue, 2007-07-31 at 17:20 +0400, Bulat Ziganshin wrote:
> Hello Duncan,
> Tuesday, July 31, 2007, 5:06:35 PM, you wrote:
> >> #ifdef __CABAL_VERSION__ > 117
> >> Is something like this possible with Cabal?
> > No, Cabal does not define any cpp defines like that.
> фафшкб one of this year GSOC projects is "Cabal sections"
> impelementation which should allow to make parts of cabal files
> specific, for example, for windows and unix. may be this new feature
> will allow to check library version too?
This allows conditional compilation in the library/program code but not
in Setup.hs itself.
More information about the Haskell-Cafe