cabal question / feature request

Dear all. is there a way to get the preprocessed sources of a project from Cabal? Is this what "Setup copy" is for? (I guess not.) If I do "runhaskell Setup.hs sdist", I get a tarball with the original sources (macros not expanded). If I do "runhaskell Setup.hs haddock" it seems the preprocessed sources are built - but then deleted, so I only get what haddock makes of them (and this I don't like - I need more control over haddock options, so I need to run it outside cabal.) Can I get the desired effect by doing Setup configure for hugs and then Setup install? (Would this install preprocessed sources?) -- -- Johannes Waldmann -- Tel/Fax (0341) 3076 6479/80 -- ---- http://www.imn.htwk-leipzig.de/~waldmann/ -------

On Fri, Sep 30, 2005 at 02:41:14PM +0200, Johannes Waldmann wrote:
is there a way to get the preprocessed sources of a project from Cabal? [...] Can I get the desired effect by doing Setup configure for hugs and then Setup install? (Would this install preprocessed sources?)
setup configure --hugs setup build will leave preprocessed sources in dist/build, but these are will be just for Hugs and your build environment.

Johannes Waldmann
Dear all.
is there a way to get the preprocessed sources of a project from Cabal? Is this what "Setup copy" is for? (I guess not.)
If I do "runhaskell Setup.hs sdist", I get a tarball with the original sources (macros not expanded).
If I do "runhaskell Setup.hs haddock" it seems the preprocessed sources are built - but then deleted, so I only get what haddock makes of them (and this I don't like - I need more control over haddock options, so I need to run it outside cabal.)
Can I get the desired effect by doing Setup configure for hugs and then Setup install? (Would this install preprocessed sources?)
What do you really want to do with these sources? Maybe a hook of some kind is the better way? peace, isaac
participants (3)
-
Isaac Jones
-
Johannes Waldmann
-
Ross Paterson