From 57f657fd85771d901b18658c561f8a0d592f1f0b Mon Sep 17 00:00:00 2001 From: Andrii Sultanov Date: Mon, 16 Sep 2024 15:14:00 +0100 Subject: [PATCH] Specify OCaml version for ocamlformat's output 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 Signed-off-by: Andrii Sultanov --- .ocamlformat | 1 + 1 file changed, 1 insertion(+) diff --git a/.ocamlformat b/.ocamlformat index f86522707f6..77d9adfc386 100644 --- a/.ocamlformat +++ b/.ocamlformat @@ -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