OCamlPro / ocp-indent

Indentation tool for OCaml, to be used from editors like Emacs and Vim.
http://www.typerex.org/ocp-indent.html
Other
200 stars 63 forks source link

Misalignment of lets inside struct functor argument #284

Closed mbarbin closed 5 years ago

mbarbin commented 5 years ago

This is from lib/base/boot/comparablem.ml 1.6.1

module M = struct

  include Validate (struct type nonrec t = t [@@deriving_inline compare, sexp_of]
      let compare : t -> t -> int = compare
      let sexp_of_t : t -> Ppx_sexp_conv_lib.Sexp.t = sexp_of_t
      [@@@end] end)
end

1.7.0 --config=JaneStreet

module M = struct

  include Validate (struct type nonrec t = t [@@deriving_inline compare, sexp_of]
                           let compare : t -> t -> int = compare
      let sexp_of_t : t -> Ppx_sexp_conv_lib.Sexp.t = sexp_of_t
      [@@@end] end)
end

The [let compare] get indented far to the right.