Planned 0.13 release to add Text support

July 8th, 2014

I have prepared a 0.13 release that will add support for using Text (for functions that currently only work with String). It does this with a new GlibString type class that has instances for both String and Text. All the functions that currently use String have been changed to use this type class instead. This allows you to switch your code easily from String to Text or use a mix of the two if you wish (but not in the same function call as it would make for more type inference issues).

This is a breaking change (hence the bump to 0.13). If you have issues with existing code then it will most likely be ambiguous type errors. The solution will probably be one of:

  • Stick with 0.12 for now - set an upper bound in the cabal file (existing code should really have a <0.13 upper bound for Gtk2Hs packages already).
  • Add type signatures - to help GHC infer the type of strings you are using. Leksah required the addition of around 20 type signatures.

I think the most common issue will probably be when Nothing is passed to a function, because GHC cannot infer the type of this Nothing. One solution is to change it to (Nothing :: Maybe String).

The 0.13 code is currently in the master branches of the various repositories. Please try it out and let us know if there is anything we need to address before releasing it to Hackage. We can still fix stuff after that, but it would be nice to know if there is anything major that we should address now.


New Gtk2Hs 0.12.5 release

December 3rd, 2013

Thanks largely to Peter Davies and Ian-Woo Kim, we have a bunch of improvements in Gtk2Hs 0.12.5:

The source code repository has been moved to github and travis-ci is used to check it builds.

Thanks to everyone who helped out!


New gtk2hs 0.12.4 release

November 21st, 2012

Thanks to John Lato and Duncan Coutts for the latest bugfix release! The latest packages should be buildable on GHC 7.6, and the cairo package should behave a bit nicer in ghci on Windows. Thanks to all!


Point release for many packages today!

May 27th, 2012

A number of packages have undergone a point release today: cairo, glib, gstreamer, gtk2hs-buildtools, gtksourceview2, svgcairo, and webkit. The only changes are to allow these packages to build on a wider variety of GHC, gtk, and cabal-install version mixtures. Thanks to Sergei Trofimovich and Christian Maeder for contributing to this mini-release!