[Gtk2hs-devel] [Gtk2hs-users] Problem compiling development version

Duncan Coutts duncan.coutts at worc.ox.ac.uk
Fri Jun 1 05:27:25 EDT 2007


On Thu, 2007-05-31 at 22:36 -0400, Peter Gavin wrote:
> Oops, I guess I hit the send button too early :)
> 
> On 5/31/07, Peter Gavin <pgavin at gmail.com> wrote:
> > Ok, so I've taken a look at the cabal sources, and I've decided to add
> > a very simple way for preprocessors to specify dependecies.
> > Basically, I'm going to add a field to the PreProcessor datatype:
> > calcDependencies :: (FilePath, FilePath) -> Verbosity -> IO [Module],
> > that returns the modules that should be preprocessed before the source
> > file passed as the first argument.  The only preprocessor that will
> > really take advantage of this is the C2hs one, of course.  Then the
> > preprocessSources function will call calcDependencies
> to build the dependency graph.
> 
> How does that sound?

That sounds sensible.

I'm cc'ing the cabal-devel list which is the place to ask questions and
get opinions and where patches should be sent for wider review by cabal
hackers.

Duncan



More information about the cabal-devel mailing list