ocaml-ppx / ppx_tools

Tools for authors of ppx rewriters
MIT License
134 stars 39 forks source link

2016 06 26 compat #48

Closed lefessan closed 8 years ago

lefessan commented 8 years ago

Provide compatibility from 4.02.0 to 4.03.0 using ocp-pp (included in ocp-build)

Drup commented 8 years ago

If we are going to use a pre-processor, we should use cppo.

alainfrisch commented 8 years ago

I prefer to maintain different branches for multiple versions of OCaml rather than add more external dependencies for such a core component.

lefessan commented 8 years ago

Then, may I create a package ocp-ppx-tools with this fork ? Right now, each version of ppx_tools on OPAM is only compatible with one version of OCaml, which limits portability of packages across versions.

alainfrisch commented 8 years ago

If you depend on "ppx_tools >= 5.0", it will work for both 4.02 and 4.03 (resolving to 5.0+4.02.0 or 5.0+4.03.0). This is what sedlex 1.99.3 does.