tracetree: Visualize Haskell data structures as edge-labeled trees
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).
Modules
- Debug
- Trace
- Debug.Trace.Tree
- Debug.Trace.Tree.Assoc
- Debug.Trace.Tree.Edged
- Debug.Trace.Tree.Generic
- Debug.Trace.Tree.Rose
- Debug.Trace.Tree.Simple
- Debug.Trace.Tree
- Trace
Flags
Automatic Flags
Name | Description | Default |
---|---|---|
ttrender | Build executable to render the trees (requires Cairo) | Disabled |
Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info
Downloads
- tracetree-0.1.0.2.tar.gz [browse] (Cabal source package)
- Package description (revised from the package)
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
For package maintainers and hackage trustees
Candidates
- No Candidates
Versions [RSS] | 0.1.0.0, 0.1.0.1, 0.1.0.2 |
---|---|
Change log | ChangeLog.md |
Dependencies | base (>=4.8 && <5), bifunctors (>=4.2 && <5.6), colour (>=2.3 && <2.4), containers (>=0.5 && <0.6), diagrams-cairo (>=1.3 && <1.5), diagrams-contrib (>=1.3 && <1.5), diagrams-lib (>=1.3 && <1.5), json (>=0.9 && <0.11), mtl (>=2.2 && <2.3), optparse-applicative (>=0.11 && <0.15), parsec (>=3.1 && <3.2), regex-posix (>=0.95 && <0.96), SVGFonts (>=1.5 && <1.7), tracetree, transformers (>=0.4 && <0.6) [details] |
License | BSD-3-Clause |
Copyright | Copyright 2015 Well-Typed LLP |
Author | Edsko de Vries |
Maintainer | edsko@well-typed.com |
Revised | Revision 1 made by GershomBazerman at 2021-07-22T20:24:20Z |
Category | Development |
Source repo | head: git clone https://github.com/edsko/tracetree |
Uploaded | by EdskoDeVries at 2018-04-06T07:28:48Z |
Distributions | |
Reverse Dependencies | 3 direct, 3 indirect [details] |
Executables | ttrender |
Downloads | 2303 total (4 in the last 30 days) |
Rating | (no votes yet) [estimated by Bayesian average] |
Your Rating | |
Status | Docs not available [build log] All reported builds failed as of 2021-06-02 [all 2 reports] |