Changed list to gtk2hs-devel! On Tue, 2009-06-23 at 08:57 -0300, Maurício wrote: > >> Do you think it would be possible for gtk2hs > >> to have it's own hackage? (...) Is this a bad, > >> or unfeasible, idea? > > > Hm, probably in the bad category. If we had sufficient time, we should > > just convert Gtk2Hs to use Cabal. (...) > > Is there a list of what is needed to get that?
I'm not too familiar with what Cabal provides at the moment. It can run c2hs and hsc2hs, but we need to use our own c2hs which is quite different. Our build system for one module (=cabal package) currently looks like this: 0. build two mini Haskell programs hierarchyGen and TypeGen 1. using these, generate two .chs files automatically 2. using grep magic, generate dependencies between different .chs modules 3. run c2hs to generate a binary representation of the C header file 4. run c2hs to generate .hs files for each .chs using the binary file from step 3.; generate file according to dependencies 5. run hsc2hs to generate .hs files from .hsc files 6. build a few C files 7. build all .hs files 8. link everything 0.+1.: I don't know if Cabal can do 0. and 1. before doing anything else. This might not be a problem since we can provide these two helper programs as separate packages. 2.-4.: This seems to be the major show stopper at the moment. I don't know if we can code this part of the build process using the Cabal API. 5. Ok. 6.: Is this supported by Cabal? I have limited experience with Cabal, so there might be other caveats. Somebody has already posted a .cabal file for the main gtk package, but I haven't had time to look at it and to see if these problems have been solved. Any comments welcome, Axel. ------------------------------------------------------------------------------ Are you an open source citizen? Join us for the Open Source Bridge conference! Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250. Need another reason to go? 24-hour hacker lounge. Register today! http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org _______________________________________________ Gtk2hs-devel mailing list Gtk2hs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gtk2hs-devel