A pretty but not greedy printer (Functional pearl)

3Citations
Citations of this article
15Readers
Mendeley users who have this article in their library.

Abstract

This paper proposes a new specification of pretty printing which is stronger than the state of the art: we require the output to be the shortest possible, and we also offer the ability to align sub-documents at will. We argue that our specification precludes a greedy implementation. Yet, we provide an implementation which behaves linearly in the size of the output. The derivation of the implementation demonstrates functional programming methodology.

Author supplied keywords

Cite

CITATION STYLE

APA

Bernardy, J. P. (2017). A pretty but not greedy printer (Functional pearl). Proceedings of the ACM on Programming Languages, 1(ICFP). https://doi.org/10.1145/3110250

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free