[Haskell-cafe] cabal, Setup.lhs example

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

On Thu, Jul 22, 2010 at 11:31:21AM +0100, Magnus Therning wrote:
> On Thu, Jul 22, 2010 at 10:59, Ross Paterson <ross at soi.city.ac.uk> wrote:
> > 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.
> Oh, why*2?
> Why is the header there if it's not used by Cabal, and why does cabal care?

The field allows cabal to avoid compiling the Setup.hs in this case.
It might also be used by other tools, e.g. one might only trust Simple
packages.  Not all fields are used by all tools, and several of them
do not affect the operation of the library (e.g. Home-page).

More information about the Haskell-Cafe mailing list