package ppxfind

Not available on OCaml 5.5
  1. Overview
  2. Docs
Tool combining ocamlfind and ppx

Install

dune-project
 Dependency

Authors

Maintainers

Sources

ppxfind-1.4.tbz
sha256=98291c69f04f7f7b7cdad1b5d786c70fc595559d4663cc04cb711ac132db4971
sha512=f80b0ee09fb536aa9f154da80d06a1b68ba3b10605fb7338bd6449beb5c8d00e983bf66b4a63e12659ae1410fea56d0a2c4cfd43584616438504628035bcb981

Description

Ppxfind is a small command line tool that among other things allows to use old style ppx rewriters with jbuilder.

Added to opam-repository:

README

ppxfind - ocamlfind ppx tool

Ppxfind is a small command line tool that allow to apply ppx rewriters installed on the system on a file. It supports both new style ppx rewriters (driverised) and old styles ones.

At the moment new styles ppx rewriters are executed in byte-code mode as Ppxfind relies on dynamic loading and the packaging of a lot of ppx rewriters is incomplete, i.e. the cmxs files are missing.

Using old styles ppx rewriters with jbuilder

Ppxfind allows to use old style ppx rewriters with jbuilder. This is not the recommended way of using ppx rewriters with jbuilder and in particular it is slower and breaks composability. However, if you need to use a ppx rewriter that is not compatible with the new style with jbuilder, you can use Ppxfind as a workaround. Simply write this in your jbuild file:

  (preprocess (action (run ppxfind -legacy ppx1,ppx2,... --as-pp ${<})))

Dependencies (4)

  1. ocaml >= "4.02.3"
  2. ocamlfind >= "1.5.6"
  3. ocaml-migrate-parsetree >= "1.6.0" & < "2.0.0"
  4. dune >= "2.0"

Dev Dependencies

None

Optional Dependencies

None

Conflicts

None

Build status

Results of building ppxfind with each compiler on check.ci.ocaml.org, run of against opam-repository 8a77e58. All results for this package.

Each result links to its build log. To keep crawlers from overloading the site, build logs require a GitHub sign-in (see ocurrent/opam-health-check). On your first log, GitHub asks you to “Authorize opam-health-check”, the OCurrent app that runs these checks; it sees only your public profile, not your repositories. The sign-in lasts 30 days.

Version OCaml 4.11 OCaml 4.14 OCaml 5.2 OCaml 5.4 OCaml 5.5
1.4 (this version) good n/a n/a n/a n/a
  • good Package successfully built
  • partial One of the dependencies failed to build
  • bad Package failed to build
  • n/a Package is not available in this environment
  • internal Internal failure