[Haskell-cafe] Build without install, using cabal

Stephen Hicks sdh33 at cornell.edu
Mon Oct 20 21:00:05 EDT 2008


On Mon, Oct 20, 2008 at 3:04 PM, Mauricio <briqueabraque at yahoo.com> wrote:
> 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.

I know this isn't what you asked, since you did explicitly mention
Cabal, but Franchise
(http://groups.google.com/group/franchise-haskell) has a function
"privateExecutable" which is used for that very purpose.  I don't know
anything about .cabal packages, but maybe this will suit your needs?

steve


More information about the Haskell-Cafe mailing list