Guillaume Petiot
Guillaume Petiot
Sorry for the very late answer, out of curiosity is that a really common style in the ocaml community? I've never seen it anywhere (I mean yes for `function` ofc,...
The problem is that we would need a way to tell the OCaml parser (that we rely on) that `..` is a valid expression, formatting the corresponding attribute in the...
I don't know about parentheses, but on this specific example using `sequence-style=before` (in addition to the `janestreet` profile) would give the following output: ```ocaml let () = if peacetime then...
The problem is the parser does not attach those nodes at the same place in the ast. On this example: ``` let f = x (** [f] is great. *)...
I don't observe this with the main branch of ocamlformat, what version are you using? If that's an old one can you try with 0.20.0 or 0.20.1? The .el file...
I see, using the lambda notation to hook ocamlformat onto the tuareg mode is what we used in the documentation (https://github.com/ocaml-ppx/ocamlformat/blob/main/doc/editor_setup.mld) this page shows some tips on how to neatly...
Ocamlformat works from the ocaml AST, what we need is to parse .mll or such files to get an AST that ocamlformat can work with, not necessarily the ocaml AST,...
Here is the minimal set of options to reproduce the issue: ``` profile=default indicate-multiline-delimiters=closing-on-separate-line margin=120 max-indent=2 nested-match=align ```
I'm looking at it but the interaction with `break-infix-before-func=false` (which is set to false by the `conventional` profile) is unclear: for `break-infix-before-func=false` and `break-infix=fit-or-vertical`, do we want: ```ocaml let _...
This gets formatted as: ```ocaml let () = aaaaaaaaaaaaaaaaaaaaaaaaaaaa |> bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb |> cccccc |> fun x -> ddddddddddd let () = aaaaaaaaaaaaaaaaaaaaaaaaaaaa |> bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb |> cccccc |> function x ->...