Generate Haskell bindings for GObject Introspection capable libraries


Version on this page:0.20.3
LTS Haskell 22.26:0.26.9
Stackage Nightly 2024-06-21:0.26.9
Latest on Hackage:0.26.9

See all snapshots haskell-gi appears in

LGPL-2.1-only licensed by Will Thompson, Iñaki García Etxebarria, Jonas Platte
Maintained by Iñaki García Etxebarria ([email protected])
This version can be pinned in stack with:haskell-gi-0.20.3@sha256:e0df255ccb698c5e0b60d40f648006630f5296357405aff5bcc5f70a6ba288d8,5426

Generate Haskell bindings for GObject Introspection capable libraries. This includes most notably Gtk+, but many other libraries in the GObject ecosystem provide introspection data too.



  • Make the overloading code protected by a CPP conditional, depending on ENABLE_OVERLOADING being defined. See issue 107.

  • Wrap boxed structs/unions as transient ManagedPtrs in callbacks. This is needed to fix a number of issues, including issue 96 and issue 97.


  • Fixes for GHC 8.2.1.


  • gtk-doc parser and haddock generator: while by no means perfect, now the autogenerated bindings come with some reasonable autogenerated documentation.

  • Many bugfixes. A particularly important one is for issue 82, which made compilation of gi-glib fail, for the latest version of gobject-introspection.