You can use `buildable` properties inside the executable section, and put an `if` inside those. The `ifi` can depend on, e.g., a flag or the OS.

On Wed, Sep 17, 2014 at 6:41 AM, Kazu Yamamoto <kazu@iij.ad.jp> wrote:
Hi cafe,

I'm developing a library. In this package, some tools for development
are included. I would like to compile these tools when I'm developing but
I don't want users to compile them.

Are there any ways to express such modes in cabal files? ("Executable"
cannot be located under "if".)

Or should I prepare a separated package for the development tools?

Regards,

--Kazu
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe