MetaCart Sign in to MyCiteSeerX

Include Citations | Advanced Search | Help

Disambiguated Search | Include Citations | Advanced Search | Help

A Prettier Printer (1998) [15 citations — 0 self]

by Philip Wadler
Journal of Functional Programming
Add To MetaCart

Abstract:

John Hughes has made pretty printers one of the prime demonstrations of using combinators to develop a library, and algebra to implement it. This note presents a new design for pretty printers which improves on Hughes's classic design. The new design is based on a single concatenation operator which is associative and has a left and right unit. Hughes's design requires two separate operators for concatenation, where horizontal concatenation has a right unit but no left unit, and vertical concatenation has neither unit.

Citations

67 The Design of a Pretty-printing Library – Hughes - 1995
14 Prettyprinting – Oppen - 1980
2 Haskell pretty-printer library. Available at http://www.cse.ogi.edu/~simonpj – Jones, L - 1997