deptrack-dot-0.1.0.0: Facilitate Graphviz representations of DepTrack dependencies.

Safe HaskellSafe
LanguageHaskell2010

DepTrack.Dot

Description

Module providing helpers to get a Dot representation of tracked dependencies during a DepTrack computation.

This module currently uses Dot from dotgen as a Dot generator, this choice may change in the future.

Synopsis

Documentation

dotifyGraphWith Source #

Arguments

:: (x -> [(String, String)])

Function to return a set of graphviz key-value attributes (e.g., ("shape","egg"))

-> GraphData x k

The graph data to represent.

-> DotDescription 

Dotify some pre-calculed GraphData.

dotify Source #

Arguments

:: (Monad m, Ord k, Show x) 
=> (x -> [(String, String)])

Function to return a set of graphviz key-value attributes (e.g., ("shape","egg"))

-> (x -> k)

Function to identify every node in the graph uniquely. If this function is non injective you may confuse two distinct nodes as a same node.

-> DepTrackT x m a

The computation to graph.

-> m DotDescription 

Graphs the dependenciees of a DepTrack computation.

Throws away the result and only keep the DotDescription.