[Haskell-cafe] Build without install, using cabal

Duncan Coutts duncan.coutts at worc.ox.ac.uk
Tue Oct 21 00:56:29 EDT 2008

On Mon, 2008-10-20 at 17:04 -0200, Mauricio wrote:
> Hi,
> I would like to include a few source files
> as 'executable' sections in a .cabal package
> description. However, although I do want to
> use main=mainDefault features, I do not want
> those packages to be installed when I run
> 'Setup.hs install'.
> Is it possible to do that? I believe there's
> no flag that indicates install step, since (I
> guess) flags are checked only at configure
> time.

Yes, just use this in the executable section:

buildable: False


More information about the Haskell-Cafe mailing list