Pretty printing designed for printing source code.

Latest on Hackage:

See all snapshots mainland-pretty appears in

BSD-3-Clause licensed and maintained by Geoffrey Mainland

Module documentation for 0.7

This version can be pinned in stack with:mainland-pretty-0.7@sha256:c3350c5ed2b4b5574a9190cb6832184104da2f39b39a16189e4e2ecd96c5feaa,1612

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.