Visualize live Haskell data structures in GHCi
Haskell TeX
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
data
docs
experiments
src/GHC
.gitignore
.travis.yml
LICENSE
README.md
Setup.hs
TODO
fib.jpg
ghc-vis.cabal
ghc-vis.tex
ghci
nonghci-test.hs
stack.yaml

README.md

Visualize live Haskell data structures in GHCi

ghc-vis is a tool to visualize live Haskell data structures in GHCi. Evaluation is not forced and you can interact with the visualized data structures. This allows seeing Haskell’s lazy evaluation and sharing in action.

Author: Dennis Felsing dennis@felsin9.de

Contributions, suggestions, and bug reports are welcome!

Documentation

At http://felsin9.de/nnis/ghc-vis

Installation

Windows and Stack

  1. Once
$ stack exec -- pacman -S mingw-w64-x86_64-pkg-config mingw-w64-x86_64-gtk3 mingw-w64-x86_64-gtk2 wget unzip 
$ stack exec -- echo 'export PATH=/c/graphviz/bin:$PATH' >> ~/.bashrc
$ stack install gtk2hs-buildtools glib cairo pango gtk
$ git clone https://github.com/def-/ghc-vis.git
$ stack install
  1. Each time

In ghc-vis folder:

$ stack repl
ghci> :script ghci
ghci> :vis