Pretty printing designed for printing source code.

Version on this page:0.7.1
LTS Haskell 22.26:0.7.1@rev:3
Stackage Nightly 2024-06-22:0.7.1@rev:4
Latest on Hackage:0.7.1@rev:4

See all snapshots mainland-pretty appears in

BSD-3-Clause licensed and maintained by Geoffrey Mainland
This version can be pinned in stack with:mainland-pretty-0.7.1@sha256:7c6306dca9a98de14bc5e59d56bed599a0c9d348b42c95d3481478e289c63727,1674

Module documentation for 0.7.1

Pretty printing designed for printing source code based on Wadler's paper A Prettier Printer. The main advantage of this library is its ability to automatically track the source locations associated with pretty printed values and output appropriate #line pragmas and its ability to produce output in the form of lazy text using a builder.