@hackage / mainland-pretty

Pretty printing designed for printing source code.

Latest0.7.1.1

About

Metadata

  • Last updated , by GeoffreyMainland
  • License BSD-3-Clause
  • Categories Text Processing
  • Maintained by: Geoffrey Mainland <mainland@drexel.edu>

  • Lottery factor: 2

Links

Installation

Tested Compilers

  1. 9.10.1
  2. 9.8.2
  3. 9.6.4
  4. 9.4.8
  5. 9.2.2
  6. 9.0.2
  7. 8.10.7
  8. 8.8.4
  9. 8.6.5
  10. 8.4.3
  11. 8.2.2
  12. 8.0.2

Readme

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.