I have the following code:
let add x y = x + y
let print_add x y = Printf.printf "%d + %d = %d\n" x y @@ add x y
let () = print_add 1 2
ocamlformat removes the blank lines, e.g.:
let add x y = x + y
let print_add x y = Printf.printf "%d + %d = %d\n" x y @@ add x y
let () = print_add 1 2
Which strikes me as bad looking, coming from C-style languages.
How can I tell ocamlformat to not do that?
Is this considered good style in Ocaml?
Thanks anyways!