package pprint

  1. Overview
  2. Docs
A pretty-printing combinator library and rendering engine

Install

Dune Dependency

Authors

Maintainers

Sources

20211129.tar.gz
md5=defc647ff0d1cb2afc10d513230724c4
sha512=12133735f558075f1ecdcec16cc11f7237dd82883c542645c479f534acd8ed6935f05a3f9aad8e330c329520852bdff6d420d632636bd9004a4d0aade762cae6

Description

This library offers a set of combinators for building so-called documents as well as an efficient engine for converting documents to a textual, fixed-width format. The engine takes care of indentation and line breaks, while respecting the constraints imposed by the structure of the document and by the text width.

Published: 30 Nov 2021

README

README.md

This is an adaptation of Daan Leijen's PPrint library, which itself is based on the ideas developed by Philip Wadler in A Prettier Printer.

To install the latest released version of PPrint, it should be sufficient to type:

  opam install pprint

To install PPrint from source, type:

  make install

The requirements are OCaml 4.02 or later and dune 1.3 or later.

The documentation is built by make doc and is then found in the file _build/default/_doc/_html/index.html.

The documentation of the latest released version is also available online.

Dependencies (2)

  1. dune >= "1.3"
  2. ocaml >= "4.02"

Dev Dependencies

None

Conflicts

None

OCaml

Innovation. Community. Security.