[Haskell-cafe] a question about cabal files
Michael Snoyman
michael at snoyman.com
Wed Sep 17 03:46:58 UTC 2014
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 at 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 at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20140917/913c2b9f/attachment.html>
More information about the Haskell-Cafe
mailing list