Migrate Ptyp_open from 502 to 501#625
Conversation
|
I'm not sure this would improve the situation much, especially since as you point out, our AST will not go back to 5.1. Now the error would be a How about simply improving the error message and backport it to 0.35 as you suggest? |
|
|
|
Yeah I guess that's right, I didn't really expect to backport this kind of support but given how hard it can be to upgrade from 0.35 to 0.36, I'd say it's fine indeed! |
A bug fix to support migration syntax like `type t = M.(t)` to the 501 AST via, our now, standard approach of using extensions. This really only impacts those who have not upgraded ppxlib to 0.36.0. Signed-off-by: Patrick Ferris <patrick@sirref.org>
Signed-off-by: Patrick Ferris <patrick@sirref.org>
5ab19df to
0ab29ce
Compare
|
I have cherry-picked these changes (tho they didn't apply cleanly) into a 0.35 branch: https://github.com/ocaml-ppx/ppxlib/tree/0.35 |
CHANGES: - Add support for OCaml 5.5 (ocaml-ppx/ppxlib#622, @patricoferris, @NathanReb) - Add support for OCaml 5.4 bivariant type parameters, they can now be used alongside ppx-es. (ocaml-ppx/ppxlib#629, @NathanReb) - Add `Attribute.Floating.declare_with_attr_loc` and `.declare_with_name_loc`, by analogy to the same functions at top level of `Attribute`. (ocaml-ppx/ppxlib#631, @ceastlund) - Migrate `Ptyp_open` nodes using an extension point (ocaml-ppx/ppxlib#625, @patricoferris) - Add Ast_builder and Ast_pattern utilities to manipulate encoded effect patterns (ocaml-ppx/ppxlib#624, @NathanReb) - Fix a bug where ppat_effects would be encoded/decoded instead of copied by the 5.4 <-> 5.3 migrations (ocaml-ppx/ppxlib#624, @NathanReb) - Fix infinite loop when duplicate attributes are present, raising an error instead (ocaml-ppx/ppxlib#613, @ceastlund, @patricoferris) - Ignore extensions inside attributes for the unused extension check (ocaml-ppx/ppxlib#616, @Skepfyr) - Fix a bug that inserted `Location.none` into `Longident`s when using OCaml 5.4 and above (ocaml-ppx/ppxlib#619, @patricoferris) - Add support for OCaml 5.4 labeled tuples, they can now be used alongside ppx-es. Also adds Ast_builder and Ast_pattern utilities to manipulate them. (ocaml-ppx/ppxlib#607, @NathanReb)
A bug fix to support migration syntax like
type t = M.(t)to the 501 AST via, our now, standard approach of using extensions. This really only impacts those who have not upgraded ppxlib to 0.36.0.So, to help people, perhaps we backport this to a 0.35.1 release?