[Haskell-cafe] cabal, Setup.lhs example

Ross Paterson ross at soi.city.ac.uk
Thu Jul 22 05:59:26 EDT 2010

On Wed, Jul 21, 2010 at 09:43:16AM -0700, Rogan Creswick wrote:
> On Wed, Jul 21, 2010 at 3:00 AM, Magnus Therning <magnus at therning.org> wrote:
> > I am successfully using hooks with the following in my .cabal file:
> >
> >    Build-Type    : Simple
> I've been unable to reproduce this -- flipping the build type to
> Custom has been necessary in every configuration I've tried.  I'd like
> to see what I'm doing differently -- is this used in a publicly
> available package I could take a look at?

Magnus is building by directly running the Setup.hs himself, which ignores
the Build-Type.  To get cabal-install to use his Setup.hs, the Build-Type
must be set to Custom.

More information about the Haskell-Cafe mailing list