Download
Packages
The Gtk2Hs suite builds with recent versions of GHC. We have tested this starting from versions 6.10.3 onwards. Note that due to a bug in GHC, version 6.12.2 does not work.
The available packages are:
- gtk2hs-buildtools: build tools, required to build from source
- glib: object type system and data structures
- gio: an OS-agnostic file access API
- cairo: a 2D vector graphics library
- pango: a Unicode-aware font rendering engine
- gtk: the base GUI library
- gconf: configuration database
- glade: a library to build user interfaces from XML descriptions
- gnomevfs: an OS-agnostic file access API (deprecated)
- gstreamer: a multimedia streaming framework
- gtkglext: an OpenGL widget
- gtksourceview2: a source-code widget
- soegtk: an API providing functions for Paul Hudak’s Haskell School of Expressions book
- svgcairo: writing Cairo graphics to SVG files
- vte: a terminal widget
- webkit: a web-browser widget, based on Apple’s webkit library
Deprecated packages (these are darcs repositories):
- sourceview: version 1 of the SourceView widget
- gnomevfs: Gnome Virtual File System, superseded by gio
- mozembed: a web-browser widget, superseded by webkit
Windows:
We do not provide a Windows installer at the moment but the first six cabal packages can easily be installed from source (you don’t even need MinGW nor Msys!). See the install instructions for further information.
Note that you need Cabal 1.8 to get ghci support.
Linux and Unix:
Many distributions provide pre-compiled packages of Gtk2Hs. Please check that the packages are up-to-date before installing them!
- Fedora. included in F7 and FE6 as ghc-gtk2hs.
- Mac OS X. included in MacPorts.
- Gentoo. included in portage as gtk2hs.
- FreeBSD. included in FreshPorts as hs-gtk2hs.
- Debian. included in the ‘unsable’ distribution as libghc6-gtk-dev.
- ArchLinux. A package is in the ArchLinux User-community Repository.
Sources
Installation from source is straight forward using the cabal packages. Make sure you install the gtk2hs-buildtools package and ensure that these tools can be found on the PATH before you install the gtk package!
See the install instructions for further information.
Older versions are available from the SourceForge download page.
Requirements
Building Gtk2Hs requires Gtk+ version 2.8 or later and GHC version 6.6 or later.