Since Daniel Wagner's patch[1] from 11 July 2012, gtk/gtk.cabal in the gtk2hs repository declares the package name to be gtk3. This is a fine approach to take for differentiating the Gtk3 bindings from their Gtk2 counterparts but the implementation needs to be finished.
In addition to editing gtk.cabal, the patch also adds gtk.cabal-0 and gtk.cabal-3. The naming of these files is quite mysterious (why does the Gtk 2 cabal file end in "-0"?) and it's completely unclear how to convince cabal-install to build bindings for a given Gtk version short of copying one of these files over gtk.cabal. At very least, we need to add some notes to INSTALL describing how to build both the Gtk3 and Gtk2 bindings. Really, it would be better if things were laid out in such a way that the desired workflow was apparent to a moderately experienced Haskeller. One way to accomplish this would be, * remove gtk/gtk.cabal * move gtk/gtk.cabal-0 to gtk2/gtk.cabal and gtk/gtk.cabal-3 to gtk3/gtk3.cabal * possibly rename gtk/ to gtk-common/ to suggest to the user that this directory contains no package of its own * add hs-source-dirs definitions pointing to gtk/ to both files * move Gtk2/3 specific files in gtk-common/ to the appropriate version-specific directory * Of course, update installation documentation in INSTALL Thoughts? Cheers, - Ben [1] https://github.com/bgamari/gtk2hs/commit/adf06373654d32b5b5838b813807faeb8bb3819b
pgpH6byHrnnWc.pgp
Description: PGP signature
------------------------------------------------------------------------------ LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99! 1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/22/13. http://pubads.g.doubleclick.net/gampad/clk?id=64545871&iu=/4140/ostg.clktrk
_______________________________________________ Gtk2hs-devel mailing list Gtk2hs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gtk2hs-devel