11 releases

0.1.9 Jun 15, 2023
0.1.8 Jun 15, 2023
0.0.0 Jun 1, 2023

#6 in #pretty-printing


Used in 3 crates (2 directly)

MPL-2.0 license

68KB
1.5K SLoC

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

(1 2 3)

or, if the line would be too long, like

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

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

Dependencies

~370KB