package ppxfind

  1. Overview
  2. Docs
Tool combining ocamlfind and ppx

Install

Dune Dependency

Authors

Maintainers

Sources

ppxfind-1.3.tbz
sha256=d49db026d0e74212c4b475b4e628aa57508c7452a0682d8c96e80c130ab892e4
sha512=dd81bf5b3413f99a3c39f25e5e747f8d57d3bacac6a1fda92478af317e2d543294b4937982c94cf010978fcd71b1cfbfce1edbaa0c3d03973079296fda89689f

Description

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

Published: 13 May 2019

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.04"
  2. ocamlfind >= "1.5.6"
  3. ocaml-migrate-parsetree < "1.6.0"
  4. dune >= "1.0"

Dev Dependencies

None

Used by (9)

  1. cconv-ppx
  2. electrod < "0.2.1"
  3. lens >= "1.2.1" & < "1.2.5"
  4. ppx_deriving >= "4.3" & < "5.0"
  5. ppx_deriving_cmdliner >= "0.4.1" & < "0.6.0"
  6. ppx_deriving_madcast < "0.2"
  7. ppx_deriving_protobuf = "2.7"
  8. ppx_deriving_rpc < "6.0.0"
  9. ppx_deriving_yojson >= "3.3" & < "3.6.0"

Conflicts (1)

  1. dune = "1.2.0" | = "1.2.1"