data-tree-print: Print Data instances as a nested tree

[ bsd3, library, pretty-printer ] [ Propose Tags ]

Provides functionality similar to that of the Show class: Taking some arbitrary value and returning a String.

  • Output is not intended to be valid haskell.

  • Requires a Data.Data.Data instance instead of a Text.Show one.

  • Output, if large, is often easier to parse than show output due to the formatting as a nested tree.

  • The user can adapt the behaviour at runtime using custom layouting expressed via syb-style extension.


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


  • No Candidates
Versions [RSS],,
Change log
Dependencies base (>=4.8 && <4.17), pretty (>=1.1 && <1.2), syb (>=0.6 && <0.8) [details]
License BSD-3-Clause
Copyright Copyright (C) 2016 Lennart Spitzner
Author Lennart Spitzner
Maintainer Lennart Spitzner <>
Revised Revision 3 made by Bodigrim at 2022-02-18T23:19:53Z
Category Pretty Printer
Home page
Bug tracker
Source repo head: git clone
Uploaded by lspitzner at 2018-10-24T20:11:44Z
Distributions Arch:, Debian:, NixOS:
Reverse Dependencies 2 direct, 2 indirect [details]
Downloads 10438 total (37 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]