Em Ter, 2008-07-08 às 10:16 +0200, Axel Simon escreveu: > Duncan has built a very nice tool called apiGen that takes an XML > description of the interfaces and creates Haskell functions. I think > using introspection capabilities of GObjects was in the air once, so it > might be an option.
apiGen is very nice, I haven't seen it yet. I does kind of the same thing that introspection would do, so I don't see much difference is using them, except that the intention of introspection is to serve as a source for bidings of all languages, and may have some facilities. > However, quite a bit of functionality of Gtk2Hs is hand-written and > Haskell specific. Since we (I) started off writing everything by hand, > we now have a tool that helps us write new things by hand by providing > the definitions of most of the functions that we merge into the existing > files. If we'd start from scratch, we might have a tool that does the > merging itself, i.e. it would take an list of hand-written exceptional > functions and generate files using these specifications and e.g. > introspection for the off-the-mill functions. > > There are still a lot of exceptions and design decisions, e.g. whether > to wrap a return value into a newtype or not. Maybe it would be more simple to have two layers: 1) a completly auto-generated binding with full support to the GTK family and 2) a higher level library with this hand-written funcionality. I think this would be good for maintaining a full similar to C GTK binding, and keeping gtk2hs specific features splited. The documentation of the low level would not need much of corrections from the C documentation, while the other one would have to be rewritten. Don't you think it worths? Greetings. -- Marco Túlio Gontijo e Silva Página: http://marcotmarcot.googlepages.com/ Blog: http://marcotmarcot.blogspot.com/ Correio: [EMAIL PROTECTED] XMPP: [EMAIL PROTECTED] IRC: [EMAIL PROTECTED] Telefone: 25151920 Celular: 98116720 Endereço: Rua Turfa, 639/701 Prado 30410-370 Belo Horizonte/MG Brasil ------------------------------------------------------------------------- Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 _______________________________________________ Gtk2hs-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/gtk2hs-devel
