Open Julow opened 1 year ago
It wouldn't shock me to de-indent the object
keyword, that's done for struct
in some cases and it looks nice:
module M (A : sig
module type T
end) (B : sig
module type T
end) =
struct
let f : ((module A.T), (module B.T)) t -> string = function B s -> s
end
The smallest of the two proposed changes is merged: https://github.com/ocaml-ppx/ocamlformat/pull/2425
The indentation of the
object
keyword in class types is not ideal as it's aligned with both what came before it and with the content of the object.The indentation of classes is entirely different, the
object
keyword is indented and its content too. This wastes vertical space for no reason as every classes defined with anobject .. end
have the same structure, where the object is at the end.Proposal
object
keyword. This only change one line in some class types: