11 releases

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

#111 in Value formatting

Download history 68/week @ 2024-02-20 68/week @ 2024-02-27 6/week @ 2024-03-05 13/week @ 2024-03-12 3/week @ 2024-03-19

158 downloads per month
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

~565KB