Install gtk2hs on ubuntu

cabal install gtk2hs-buildtools
sudo cp ~/.cabal/bin/gtk2hsC2hs /usr/bin

sudo cp ~/.cabal/bin/gtk2hsHookGenerator /usr/bin

sudo cp ~/.cabal/bin/gtk2hsTypeGen /usr/bin

cabal install gtk

cd ~/.cabal/share/cairo-0.11.1
gchi

:l Graph.hs

main

OK!















你可能感兴趣的:(Install gtk2hs on ubuntu)