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.

Duncan

_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to