package pp
Pretty-printing library
Install
Dune Dependency
Authors
Maintainers
Sources
pp-2.0.0.tbz
sha256=8651351518b092b4a2def4e08171c276152f92fb6a84a8b19b6b929ccdb44419
sha512=78cb68f35c0b975dd1e91bd83d5e33bcec1ee642431585d55864c483c70a032755dfcf21ec5697691e7e7554381ddb580639fd149e28ba6f74d04d2ee43d360d
Description
This library provides a lean alternative to the Format 1 module of the OCaml standard library. It aims to make it easy for users to do the right thing. If you have tried Format before but find its API complicated and difficult to use, then Pp might be a good choice for you.
Pp uses the same concepts of boxes and break hints, and the final rendering is done to formatter from the Format module. However it defines its own algebra which some might find easier to work with and reason about. No previous knowledge is required to start using this library, however the various guides for the Format module such as this one 2 should be applicable to Pp as well.
Published: 17 Sep 2024
Dev Dependencies (3)
-
odoc
with-doc
-
ocamlformat
with-dev-setup & = "0.26.2"
-
ppx_expect
with-test
Used by (9)
-
dune-private-libs
>= "3.16.1"
-
dune-rpc
>= "3.16.1"
- dunolint
-
dyn
>= "3.16.1"
-
melange
>= "3.0.0-51" & < "4.0.0-51"
-
ocaml-lsp-server
>= "1.6.1"
- pageantty
- pplumbing
-
stdune
>= "3.17.0"
Conflicts
None
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page