[arch-haskell] ghc-vis

stef204 stef204 at yandex.com
Tue Oct 13 09:12:44 UTC 2015


Hi,

I am learning Haskell, following various tutorials, etc.

Trying to install ghc-vis to help me better understand how Haskell works.
"ghc-vis is a tool to visualize live Haskell data structures in GHCi."

And trying to follow this guide to install it, specifically as it relates to Arch:
<http://felsin9.de/nnis/ghc-vis/#installation>

Installation fails.

I have installed haskell-gtk but am unable to find the graphviz haskell bindings haskell-graphviz. (I do have Arch's regular graphviz installed from official repos.)

During 'cabal install ghc-vis --disable-library-profiling' several libraries fail with messages:

failed to install glib-0.12.5.4
Build log ( /home/($user)/Documents/hs/hswork/projects/101/.cabal-sandbox/logs/glib-0.12.5.4.log ):
Failed to install cairo-0.12.5.3
Build log ( /home/($user)/Documents/hs/hswork/projects/101/.cabal-sandbox/logs/cairo-0.12.5.3.log ):

The log files above are empty, so no help there.

I have done 'cabal install gtk2hs-buildtools' successfully but does not seem to help above errors.

I am doing all of the above in a sandbox, which is probably not the best for ghc-vis but since I have no experience with cabal and didn't want to make errors and possibly pollute my system with difficult to track files, I figured I'd try to build in a sandbox, at first--which could be the cause of the problem?

Or possibly I should remove the official haskell-gtk and let cabal take care of this?

Would very much appreciate some feedback as to how to resolve.

Thanks.

PS  These are the messages occurring at end of failed build:

cabal: Error: some packages failed to install:
cairo-0.12.5.3 failed during the configure step. The exception was:
user error ('/usr/bin/ghc' exited with an error:

/tmp/cabal-tmp-20619/cairo-0.12.5.3/SetupWrapper.hs:91:17:
Ambiguous occurrence ‘die’
It could refer to either ‘Distribution.Simple.Utils.die’,
imported from ‘Distribution.Simple.Utils’ at
/tmp/cabal-tmp-20619/cairo-0.12.5.3/SetupWrapper.hs:8:1-32
or ‘System.Exit.die’,
imported from ‘System.Exit’ at
/tmp/cabal-tmp-20619/cairo-0.12.5.3/SetupWrapper.hs:21:1-18
)
ghc-vis-0.6 depends on cairo-0.12.5.3 which failed to install.
gio-0.12.5.3 depends on glib-0.12.5.4 which failed to install.
glib-0.12.5.4 failed during the configure step. The exception was:
user error ('/usr/bin/ghc' exited with an error:

/tmp/cabal-tmp-20624/glib-0.12.5.4/SetupWrapper.hs:91:17:
Ambiguous occurrence ‘die’
It could refer to either ‘Distribution.Simple.Utils.die’,
imported from ‘Distribution.Simple.Utils’ at
/tmp/cabal-tmp-20624/glib-0.12.5.4/SetupWrapper.hs:8:1-32
or ‘System.Exit.die’,
imported from ‘System.Exit’ at
/tmp/cabal-tmp-20624/glib-0.12.5.4/SetupWrapper.hs:21:1-18
)
gtk-0.12.5.7 depends on cairo-0.12.5.3 which failed to install.
pango-0.12.5.3 depends on cairo-0.12.5.3 which failed to install.
svgcairo-0.12.5.2 depends on cairo-0.12.5.3 which failed to install.
xdot-0.2.4.8 depends on cairo-0.12.5.3 which failed to install.


More information about the arch-haskell mailing list