caml-list - the Caml user's mailing list
 help / Atom feed
From: Jeremie Dimino <jdimino@janestreet.com>
To: caml users <caml-list@inria.fr>
Subject: [Caml-list] [ANN] First release of Pp, a pretty-printing library
Date: Tue, 24 Mar 2020 17:32:44 +0000
Message-ID: <CANhEzE5utEwG1tb1uUhiS56JKLRydTjPv5GzcajRHd8yTniC=Q@mail.gmail.com> (raw)

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

Hi,

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

  https://github.com/diml/pp

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!

Thanks,

Jeremie

[1]: https://caml.inria.fr/pub/docs/manual-ocaml/libref/Format.html
[2]: https://dune.build
[3]: http://caml.inria.fr/resources/doc/guides/format.en.html

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

                 reply index

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publically to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CANhEzE5utEwG1tb1uUhiS56JKLRydTjPv5GzcajRHd8yTniC=Q@mail.gmail.com' \
    --to=jdimino@janestreet.com \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

caml-list - the Caml user's mailing list

Archives are clonable: git clone --mirror https://inbox.ocaml.org/caml-list

AGPL code for this site: git clone https://public-inbox.org/ public-inbox