caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] [ANN] First release of Pp, a pretty-printing library
@ 2020-03-24 17:32 Jeremie Dimino
  0 siblings, 0 replies; only message in thread
From: Jeremie Dimino @ 2020-03-24 17:32 UTC (permalink / raw)
  To: caml users

[-- Attachment #1: Type: text/plain, Size: 1434 bytes --]


I'm happy to announce the first release of the pp library!

This library provides a lean alternative to the Format module [1] of the
standard library. It uses the same comcepts of boxes and break hints,
however it defines its own algebra which some might find easier to work
with and reason about.  I personally do :). The final rendering is still
done via a formatter which makes it easy to integrate `Pp` in existing
programs using `Format`.

We introduced this module in [Dune][2] to help improve the formatting of
messages printed in the terminal and it has been a success. The new API is
smaller, simpler and makes it easy for developers to do the right thing.
Once the `Pp` module of Dune was mature enough, we decided to extract it
into a separate library so that it could benefit others.

The library itself is composed of a single `Pp` module and has no
dependencies.  Its documentation is self-contained and no previous
knowledge is required to start using it, however the various guides for the
`Format` module such as this one [3] should be applicable to `Pp` as well.

If you have used `Format` before and like me found its API complicated and
difficult to use, I hope that you will find `Pp` nicer to work with!




[-- Attachment #2: Type: text/html, Size: 1829 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-03-24 17:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-24 17:32 [Caml-list] [ANN] First release of Pp, a pretty-printing library Jeremie Dimino

caml-list - the Caml user's mailing list

This inbox may be cloned and mirrored by anyone:

	git clone --mirror
	git clone --mirror

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 caml-list caml-list/ \
	public-inbox-index caml-list

Example config snippet for mirrors.
Newsgroup available over NNTP:

AGPL code for this site: git clone