[Haskell-cafe] Code that writes code
chrisdone at googlemail.com
Fri Aug 20 05:22:43 EDT 2010
Check out the userHooks in Cabal. I believe you can use, e.g.
hookedPreProcessors, or preBuild to preprocess your files into
regular Haskell files before building takes place.
On 19 August 2010 23:00, Andrew Coppin <andrewcoppin at btinternet.com> wrote:
> I'm working on a small Haskell package. One module in particular contains so
> much boilerplate that rather than write the code myself, I wrote a small
> Haskell program that autogenerates it for me.
> What's the best way to package this for Cabal? Just stick the generated file
> in there? Or is there some (easy) way to tell Cabal how to recreate this
> file itself?
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
More information about the Haskell-Cafe