From: Axel S. <A....@ke...> - 2007-09-13 09:40:04
|
Hi Pete, On Sep 8, 2007, at 1:54, Peter Gavin wrote: > Hello everyone, > > I've started cabalizing glib. I've basically put all the code needed > to do it into one module called Gtk2HSCabal.hs. It's based on a patch > I sent to the cabal mailing list not long ago. It's still a bit > rough, and the intention isn't at all for this code to stay in gtk2hs. > It's more proof of concept than anything, I suppose. It should > easily be integrated (after some cleaning up) directly into Cabal, if > anyone wants to help with that. > > Oh, I'm using ghc 6.6.1 and c2hs 0.14.6 and very recent cabal from > darcs. I haven't tested it with anything else, so testing it out on > your setup would be helpful. I guess Duncan and I are a bit busy at the moment, at least judging from our response time (I certainly am), so sorry about the delay. I have yet no experience whatsoever with Cabal and don't know anything about its internals. It looks though like if you've build a little 'make' inside Cabal in order to get all these dependencies under control. It looks very interesting and the fact that you can change a Haskell program when things don't work seems to be more attractive that fiddling with Automake. However, some of our file extensions and tools we use are probably too specific to Gtk2Hs for them to be incorporated into Cabal. We use .hs.pp to force CPP pre- processing, but you can get away with putting the corresponding compiler option into the file as a pragma. If your approach covers the whole of Gtk2Hs, then we're certainly willing to replace the build system of Gtk2Hs, which is something that is on Duncan's wish list anyway. I don't quite know what to suggest. But I'm sure your work will find its way into building Gtk2Hs one day, even if its only within the Gtk2Hs source tree. Axel. |