[Haskell-cafe] cabal, Setup.lhs example

Rogan Creswick creswick at gmail.com
Tue Jul 20 23:53:10 EDT 2010


On Tue, Jul 20, 2010 at 8:50 PM, Tom Hawkins <tomahawkins at gmail.com> wrote:
>
> Thanks.  I tried this, but it appears cabal-install ignores the
> Setup.hs file.  The only way I could get it to take is if I run
> 'runhaskell Setup.hs configure' directly.  I always assumed
> cabal-install runs Setup.hs under the hood, but apparently not.  Why
> is this?

I believe you must set

Build-type: Custom

in your cabal file to use user hooks in Setup.hs.  I don't fully
understand the implications of using Custom, though.

--Rogan


> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>


More information about the Haskell-Cafe mailing list