Cabal and Hsc2hs Build Phase Options

Matthew William Cox matt at
Wed Nov 25 12:25:48 EST 2009

On Wed, Nov 25, 2009 at 10:16:40AM +0000, Duncan Coutts wrote:
> Right, so you'll need a custom Setup.hs. It will collect the info from
> your ./configure script. It will need to update the ProgramConfiguration
> environment that Cabal uses. The ProgramConfiguration tells Cabal where
> various named programs live and if they need any extra flags (this is
> the information store that the --with-prog= and --prog-options= flags
> modify).
> You'll want to set the gcc to be used. That will propagate automatically
> to the hsc2hs call, though not to ghc (though arguably it should).
> You'll need to modify the program configuration to add in the
> appropriate flags to the ghc calls.

Thanks for sketching this out. It seems like exactly what I need.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
Url :

More information about the Libraries mailing list