I am trying to install gtk for Haskell on Ubuntu. I have already installed the Haskell platform.
When I run cabal install gtk2hs-buildtools, I get the following error:
Resolving dependencies...
Configuring Cabal-2.2.0.1...
Failed to install Cabal-2.2.0.1
Build log ( /home/vishad/.cabal/logs/Cabal-2.2.0.1.log ):
cabal: Error: some packages failed to install:
Cabal-2.2.0.1 failed during the configure step. The exception was:
user error ('/usr/bin/ghc' exited with an error:
/tmp/cabal-tmp-11425/Cabal-2.2.0.1/Distribution/Utils/IOData.hs:36:0:
error: missing binary operator before token "("
#if MIN_VERSION_bytestring(0,10,0)
^
)
gtk2hs-buildtools-0.13.4.0 depends on Cabal-2.2.0.1 which failed to install.
I have already installed the dependencies using the following command :
sudo apt-get install libgtk2.0-dev libpango1.0-dev libglib2.0-dev libcairo2-dev