This crate defines a Wadler-style pretty-printing API.

Start with the static functions of Doc.

Quick start

Let's pretty-print simple sexps! We want to pretty print sexps like

lisp (1 2 3) or, if the line would be too long, like

lisp ((1) (2 3) (4 5 6))

A simple symbolic expression consists of a numeric atom or a nested ordered list of symbolic expression children.