Skip to content

Switch to OCaml 4.08 Ast .. #630

@hhugo

Description

@hhugo

.. once ocaml-ppx/ocaml-migrate-parsetree#50 is addressed.

Here is a non-exhaustive list of interesting changes for ocamlformat:

  1. GPR#1970: fix order of floatting documentation comments in classes (makes the sorting unnecessary in
    List.sort fields
    and
    List.sort fields
    ). the sort could be implemented in migrate_parsetree when upgrading from 4.07 to 4.08.
  2. GPR#1958: allow [module M(_:S) = struct end] syntax (one can lift the restriction on the underscore
    (* The sugar is different when used with the [functor] keyword. The syntax
    )
  3. GPR#1960: The parser keeps previous location when relocating ast node. (should be able to help with
    let extend_loc_to_include_attributes t (loc : Location.t)
    )
  4. GPR#1705: Allow @@attributes on exceptions. (we should be able to address
    (* This won't be needed once https://github.com/ocaml/ocaml/pull/1705 is
    )
  5. GPR#1954: Add locations to toplevel directives
  6. GRP#1953: Add locations to attributes in the parsetree.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions