prettyprinter-graphviz: A prettyprinter backend for graphviz

[ bsd3, graphics, library ] [ Propose Tags ]

Provides utility functions for rendering pretty GraphViz labels.


[Skip to Readme]

Modules

[Index] [Quick Jump]

Downloads

Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.1.0.0, 0.1.0.1, 0.1.1.0, 0.1.1.1, 1.0.0.0, 1.0.0.1, 1.0.0.2, 1.1.0.0
Change log CHANGELOG.md
Dependencies base (>=4.11 && <5), graphviz (>=2999.20.0.3 && <2999.21), prettyprinter (>=1.5.1 && <1.8), text (>=1.2.3.1 && <1.3 || >=2.0 && <2.2) [details]
License BSD-3-Clause
Author George Thomas
Maintainer georgefsthomas@gmail.com
Revised Revision 2 made by GeorgeThomas at 2024-09-18T17:24:55Z
Category Graphics
Home page https://github.com/georgefst/prettyprinter-graphviz
Source repo head: git clone git://github.com/georgefst/prettyprinter-graphviz.git
Uploaded by GeorgeThomas at 2020-10-09T10:07:41Z
Distributions NixOS:1.1.0.0
Downloads 1663 total (39 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]

Readme for prettyprinter-graphviz-1.1.0.0

[back to package description]

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