Skip to content

Commit

Permalink
Specify OCaml version for ocamlformat's output (#5997)
Browse files Browse the repository at this point in the history
OCamlformat will correctly format new features only when it's aware the
OCaml version it's outputting provides them. This allows to improve
formatting for let-punning, punned labelled arguments, and more:
https://github.com/ocaml-ppx/ocamlformat/blob/main/CHANGES.md#added-8
  • Loading branch information
last-genius authored Sep 16, 2024
2 parents 1d32682 + 57f657f commit 8902600
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .ocamlformat
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ break-separators=before
break-infix=fit-or-vertical
break-infix-before-func=false
sequence-blank-line=preserve-one
ocaml-version=4.14

0 comments on commit 8902600

Please sign in to comment.