dotparse-0.0.2: dot language parsing and printing.
Safe HaskellSafe-Inferred
LanguageHaskell2010

DotParse.Examples.NumHask

Description

Example of Dot graph construction for the NumHask class heirarchy.

Synopsis

Documentation

>>> import DotParse
>>> :set -XOverloadedStrings

data Family Source #

Constructors

Addition 
Multiplication 
Actor 

Instances

Instances details
Show Family Source # 
Instance details

Defined in DotParse.Examples.NumHask

Eq Family Source # 
Instance details

Defined in DotParse.Examples.NumHask

Methods

(==) :: Family -> Family -> Bool #

(/=) :: Family -> Family -> Bool #

Ord Family Source # 
Instance details

Defined in DotParse.Examples.NumHask

graphNHG :: Graph Class Source #

NumHask Classes as an algebraic graph

dotGraphNH :: Directed -> Graph Source #

NumHask statements in a dot Graph with box shapes for the nodes.

dotGraphNH' :: Directed -> Graph Source #

dotGraphNH after being positionally processed via processGraph

toLink :: ID -> Text Source #

Convert a node ID to a label for chart-svg charts Doing this directly in dot doesn't quite work because the engines get the width of the link wrong.

writeNHChart :: IO () Source #

A chart-svg chart with label links

writeChartOptions "other/nh.svg" (graphToChart toLink (dotGraphNH' Directed))