easy-format icon indicating copy to clipboard operation
easy-format copied to clipboard

Pretty-printing library for OCaml

Results 10 easy-format issues
Sort by recently updated
recently updated
newest added

OPAM page: https://opam.ocaml.org/packages/easy-format/easy-format.1.3.1/ Link in question: http://mjambon.com/easy-format.html (redirects to the https version, but still 404)

But 1.3.2 works fine. Could it be a dune issue? ``` ➜ ~ opam --version 2.1.2 ➜ ~ opam install easy-format.1.3.3 The following actions will be performed: ↗ upgrade easy-format...

Running `make` or `dune build`, getting this error: ``` ocamlc src/.easy_format.objs/byte/easy_format.{cmo,cmt} (exit 2) (cd _build/default && /usr/bin/ocamlc.opt -w @a-4-29-40-41-42-44-45-48-58-59-60-40 -strict-sequence -strict-formats -short-paths -keep-locs -g -bin-annot -I src/.easy_format.objs/byte -intf-suffix .ml -no-alias-deps...

I think it could be because of the call to flush https://github.com/mjambon/easy-format/blob/master/src/easy_format.ml#L620 What I'm trying to do looks like: ```ocaml custom (fun ppf -> (* .. bunch of pp_stuff ......

It would be great to have a few features for specifying if separators should be included in the "trailing" portion of the list. A couple of options: ``Trailing_separator_never` ``` //...

Is it possible to support adding a separator before closing so we can support trailing comma like this? ``` [ 1, 2, ]; ``` or ``` [ 1, 2, ]...

This is one pattern that I've had a hard time figuring out how to accomplish with the formatting primitives in Eeasy_format: ``` if (x) {itemHere(a, b, c)} else {itemThere(x, y,...

This is an edited version of simple_example.ml that prints the same thing 3 times, once with width 67, once with width 68, and once with width 69. https://gist.github.com/Charlesetc/42fdd7295bb364ae3ecd77ecc8a9da01 Here's the...

It is very common to format source code as follows: ``` (* In ML languages with space separated "arguments" *) let result = myFunction x y { key1= 'long'; key2='long';...

I've found that in formatting source code, you often want to have delimiters (such as commas etc). But you often also have other items in the list for which there...