haccepted-0.1.0.0: Data structures and algorithms
Safe HaskellSafe-Inferred
LanguageHaskell2010

TreeDraw

Description

Draw trees

Primarily intended for debugging.

Synopsis

Documentation

draw :: (a -> String) -> (a -> [(Maybe String, a)]) -> a -> String Source #

Draws a tree. Like Data.Tree.drawTree but works with any type, can show edge labels and uses unicode box characters. Example: a ├── 1 ── b ├── 2 ── c │ ├── d │ └── e └── 3 ── f