1.
Install XQuartz (download)
at the time these instruction were written version 2.7.5 worked. Make
sure to logout and login again.
2.
Install the gtk library and dependencies
brew install glib cairo
gtk gettext fontconfig
tar -xzvf
freetype-2.5.3.tar.gz
cd freetype-2.5.3
./configure
make
make install
Verify
whether gtk installed correctly by executing gtk-demo. If the window
does not open you might have forgotten to logout and login.
gtk-demo
4.
Install Haskell GTK with gcc 4.8, it might work with other versions
of gcc that you already have installed. However, it will not work
with gcc versions <= 4.2.
cabal install
gtk2hs-buildtools
export
PKG_CONFIG_PATH=/opt/X11/lib/pkgconfig
brew install gcc48
cabal get gtk
cd gtk-VERSION-NUMBER
5. Open gtk.cabal
and change its cabal version requirement to >= 1.10 or something
lower.
6. Build gtk2hs from
source
cd ..
cabal install
gtk-VERSION-NUMBER