@hackage tracetree0.1.0.2
Visualize Haskell data structures as edge-labeled trees
Categories
License
BSD-3-Clause
Maintainer
edsko@well-typed.com
Links
Versions
Installation
Dependencies (6)
- base >=4.8 && <5
- bifunctors >=4.2 && <5.6
- containers >=0.5 && <0.6
- json >=0.9 && <0.11
- mtl >=2.2 && <2.3
- transformers >=0.4 && <0.6 Show all…
Dependents (3)
@hackage/acme-everything, @hackage/cabal-install-solver, @hackage/cabal-install
Package Flags
ttrender
(off by default)
Build executable to render the trees (requires Cairo)
The tracetree library can be used to conveniently write Haskell data structures as trees represented as JSON files. These JSON files can then be inspected with any JSON viewer; the JSON viewer's functionality to collapse part of the JSON tree can be particularly convenient when exploring large objects.
Additionally, the ttrender executable can be used to render these JSON trees as .svg or .png files, and provides various command line flags for controlling the layout of the tree (colour, orientation, hiding nodes, etc.).
The tracetree library and ttrender executable are independent components; if you don't want to add the dependency on tracetree to your project, you can just generate the .JSON files directly in your code; the format is not complicated (indeed, you can create them by hand or post-process previously exported .JSON files).