ocaml-ppx / ppx_import

Less redundancy in type declarations and signatures
MIT License
89 stars 29 forks source link

Is there a comprehensive list of the supported syntaxes (and which syntaxes are no longer supported) ? #96

Open chetmurthy opened 6 months ago

chetmurthy commented 6 months ago

Hi, I write and maintain a Camlp5-based work-alike for ppx_import (named pa_ppx.import), and I recently started to upgrade it for OCaml 5.2.0. I found that the old syntax

type position = [%import: Lexing.position]

no longer works, and that the new syntax is

type%import position =Lexing.position

So I thought I'd check if there were a comprehensive list of what the currently-supported syntax is ? I'd like to maintain compatibility with ppx_import, hence my question.