ghc-vis-0.1: Live visualization of data structures in GHCi

Maintainerdennis@felsin9.de
Safe HaskellSafe-Infered

GHC.Vis.Types

Description

 

Synopsis

Documentation

data Signal Source

Signals that are sent to the GUI to signal changes

Constructors

NewSignal Box String

Add a new Box to be visualized

UpdateSignal

Redraw

ClearSignal

Remove all Boxes

SwitchSignal

Switch to alternative view

ExportSignal String

Export the view to a file

data ViewType Source

Visualization views

Constructors

ListView 
GraphView 

data State Source

The global state used for the visualizations.

Constructors

State 

Fields

mousePos :: Point

Current position of the mouse, updated with every movement

view :: ViewType

What kind of visualization is currently running

type HeapEntry = (Maybe String, Closure)Source

An entry in a HeapMap, consisting of an identifier and a parsed GHC heap entry

type HeapMap = [(Box, HeapEntry)]Source

A map of heap objects.

We're using a slow, eq-based list instead of a proper map because StableNames' hash values aren't stable enough

type PrintState = State (Integer, HeapMap, HeapMap)Source

The second HeapMap includes BCO pointers, needed for list visualization

data VisObject Source

Simple representation of objects on the heap, so they can be arranged linearly