dataflow-0.7.3.0: Generate Graphviz documents from a Haskell representation.

Safe HaskellSafe-Inferred
LanguageHaskell2010

DataFlow.PrettyRenderer

Synopsis

Documentation

type Renderer t = WriterT [String] (State RendererState) t Source

The Renderer represents some output generator that runs on a Diagram.

write :: String -> Renderer () Source

Write a string to the output (no linefeed).

writeln :: String -> Renderer () Source

Write a string to the output (with linefeed).

indent :: Renderer () Source

Increase indent with 2 spaces.

dedent :: Renderer () Source

Decrease indent with 2 spaces.

withIndent :: Renderer () -> Renderer () Source

Indent the output of gen with 2 spaces.