@hackage / prettyprinter-graphviz

A prettyprinter backend for graphviz

Latest1.1.0.0

About

Metadata

  • Last updated , by GeorgeThomas
  • License BSD-3-Clause
  • Categories Graphics
  • Maintained by: georgefsthomas@gmail.com

  • Lottery factor: 0

Links

Installation

Readme

GraphViz pretty-printing

Just some simple utility functions for hooking up the Haskell libraries graphviz and prettyprinter.

Given a Doc, you can use render to transform it to a GraphViz Label. If you are using a different annotation type (eg. something more abstract), then you can define a mapping to GraphViz HTML attributes, and fmap it over your Doc.

Example