Skip to content

0.27.0

Compare
Choose a tag to compare
@davesnx davesnx released this 06 May 12:22
· 1 commit to main since this release
01b7b3b

CHANGES:

Highlight

Added

Changed

  • * Consistent formatting of comments (ocaml-ppx#2371, ocaml-ppx#2550, @Julow)
    This is mostly an internal change but some comments might be formatted differently.

  • * Improve formatting of type constraints with type variables (ocaml-ppx#2437, @gpetiot)
    For example:

    let f : type a b c.
        a -> b -> c =
      ...
    
  • * Improve formatting of functor arguments (ocaml-ppx#2505, @Julow)
    This also reduce the indentation of functor arguments with long signatures.

  • Improvements to the Janestreet profile (ocaml-ppx#2445, ocaml-ppx#2314, ocaml-ppx#2460, ocaml-ppx#2593, ocaml-ppx#2612, @Julow, @tdelvecchio-jsc)

  • * Undo let-bindings and methods normalizations (ocaml-ppx#2523, ocaml-ppx#2529, @gpetiot)
    This remove the rewriting of some forms of let-bindings and methods:

    • let f x = (x : int) is no longer rewritten into let f x : int = x
    • let f (type a) (type b) ... is no longer rewritten into let f (type a b) ...
    • let f = fun x -> ... is no longer rewritten into let f x = ...
  • * The break-colon option is now taken into account for method type constraints (ocaml-ppx#2529, @gpetiot)

  • * Force a break around comments following an infix operator (fix non-stabilizing comments) (ocaml-ppx#2478, @gpetiot)
    This adds a line break:

      a
      ||
      (* this comment is now on its own line *)
      b
    

Fixed