[arch-haskell] ghc-vis
Magnus Therning
magnus at therning.org
Tue Oct 13 12:44:04 UTC 2015
On Tue, Oct 13, 2015 at 03:12:44AM -0600, stef204 wrote:
> 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.)
The package `haskell-graphviz` is no longer in [haskell-core]. Right
now I can't recall why I removed it, but most likely it was a lack of
upstream updates resulting in other packages being kept back.
> 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 ):
When installing `haskell-gtk` you should have gotten `haskell-glib` and
`haskell-cairo` too (as well as `haskell-pango`). `cabal` ought to have
picked that up.
> 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.
You can find `gtk2hs-buildtools` in [haskell-core].
> 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?
In general I try to avoid mixing use of [haskell-core] and `cabal`.
> Would very much appreciate some feedback as to how to resolve.
Personally I'm so familiar with the tools we se for [haskell-core] that
I often build proper Arch packages for everything :)
I very rarely use `cabal` for anything.
I've lately had a closer look at `stack` (available in [haskell-core] as
`haskell-stack-bin`) and if ghc-vis produces one or more binaries (i.e.
no libs that you are interested in) then it might be a good way to build
it.
/M
--
Magnus Therning OpenPGP: 0xAB4DFBA4
email: magnus at therning.org jabber: magnus at therning.org
twitter: magthe http://therning.org/magnus
Finagle's Sixth Law:
Don't believe in miracles -- rely on them.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 163 bytes
Desc: not available
URL: <http://mail.haskell.org/pipermail/arch-haskell/attachments/20151013/f9acced2/attachment.sig>
More information about the arch-haskell
mailing list