package prettiest

  1. Overview
  2. Docs
Non-greedy pretty printer

Install

Dune Dependency

Authors

Maintainers

Sources

0.0.2.tar.gz
sha256=1ab7c41402027b6b7503f8e9c153938ae62cb68a9abf26c476d520cbd00149db
md5=4df259fbbc4c7b07a00ba96e355a09f3

Description

Implementation of Jean-Philippe Bernardy's A Pretty But Not Greedy Printer (Functional Pearl). PACMPL 1(ICFP): 6:1-6:21 (2017) (https://jyp.github.io/pdf/Prettiest.pdf).

Published: 24 Jan 2018

README

prettiest

Implementation of Jean-Philippe Bernardy's A Pretty But Not Greedy Printer (Functional Pearl). PACMPL 1(ICFP): 6:1-6:21 (2017) in OCaml. The author of the paper has a version in Haskell.

I make no promises about performance.

Documentation

Installation

This package is on OPAM:

opam install prettiest

Examples

A version of the sexpr example is included in the test folder.

That folder also includes a larger example of pretty printing types.

Dependencies (5)

  1. jbuilder >= "1.0+beta12"
  2. ocaml-migrate-parsetree < "2.0.0"
  3. ppx_compare >= "v0.10"
  4. base >= "v0.10" & < "v0.11"
  5. ocaml >= "4.04.1"

Dev Dependencies

None

Used by

None

Conflicts

None

OCaml

Innovation. Community. Security.