Hi Marco, On Jul 9, 2008, at 22:12, Marco Túlio Gontijo e Silva wrote: > > 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?
I don't think that a "complete" wrapping around the C API is very useful as the challenge is mostly to determine what parameters mean. For instance, a pointer to a structure could be an input or an output and hence needs to be marshalled in, out or a ForeignPtr must be created. An interface in the spirit of 1) is basically automatically generated by c2hs and hsc2hs which create foreign import declarations and marshalling functions from the more high-level (handwritten) Gtk2Hs source files. So in a sense, Gtk2Hs is already what you describe above! 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
