= 768" x-on:close-sidebar="sidebar=window.innerWidth >= 768 && true">
Pretty-printing library
Install
copied = false, 2000)"
:class="{ 'border-gray-700': !copied, 'text-gray-100': !copied, 'focus:ring-orange-500': !copied, 'focus:border-orange-500': !copied, 'border-green-600': copied, 'text-green-600': copied, 'focus:ring-green-500': copied, 'focus:border-green-500': copied }">
Authors
Maintainers
Sources
pp-1.0.1.tbz
sha256=ccf5917c8f8fce5c3a678061acc705aafa27a7ed38c7da86e7fcefb083522f3d
sha512=2e9ee6ccbc880591ba180132ecb511c661404709887692f4aae8c482c192d5f02830ef0e3268e3e4e4c7770689c07ce0b532b1d9bbe6fc1498876028b3d8e154
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: 18 Mar 2020
Dependencies (2)
Dev Dependencies (1)
-
ppx_expect
with-test
Used by (1)
-
lsp
>= "1.6.1" & < "1.10.5"
Conflicts
-
None
On This Page