[Haskell-cafe] CABAL: conditional executable?

Magnus Therning magnus at therning.org
Tue Mar 4 05:37:09 EST 2008

On 3/4/08, Thomas Schilling <nominolo at googlemail.com> wrote:
> executable foo
>    main-is: bla
>    if !os(windows):
>      buildable: false
> Unfortunately this gives rather unhelpful error messages when used
> with flags, but it works well enough for now.
> / Thomas

Hmmm, I don't seem to get this to work the way I want it.  I get a "Parse of
field 'buildable' failed:" which means configure failed and then I can't
proceed to build the second executable, bar, in the same package.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20080304/427a7f3c/attachment.htm

More information about the Haskell-Cafe mailing list