On Mon, 2008-07-07 at 15:41 -0300, Marco Túlio Gontijo e Silva wrote: > Hello, > > have you seen about this: > > http://blogs.gnome.org/johan/2007/11/30/future-of-gnome-language-bindings/ > > Do you think it may be used for generating all the haskell bindings to > Gtk? > > The first thing I thought was that there are some things in gtk2hs which > are not just bindings, but this may be still very useful. >
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. 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. So, yes, we are aware of the design space. A. ------------------------------------------------------------------------- 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
