[Haskell-cafe] Prettier pretty-printing of data types?
johan.tibell at gmail.com
Tue Mar 13 23:33:31 CET 2012
The derived Show instance is useful, but I sometimes wish for
something that's easier to read for big data types. Does anyone have
an implementation of show that draws things in a hierarchical manner?
data Tree a = Leaf | Bin Int a (Tree a) (Tree a)
value = Bin 1 (Bin 2 Leaf Leaf) (Bin 3 Leaf Leaf)
More information about the Haskell-Cafe