From 3a31039c7c46c5d0f0b6a44da180fda96275be30 Mon Sep 17 00:00:00 2001 From: Javier Chavarri Date: Fri, 16 Aug 2024 07:41:32 +0000 Subject: [PATCH] ppx: undocument native ppx https://github.com/melange-community/melange-json/pull/10#issuecomment-2292787841 --- ppx/README.md | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/ppx/README.md b/ppx/README.md index 045df9b..9d93457 100644 --- a/ppx/README.md +++ b/ppx/README.md @@ -1,8 +1,7 @@ # PPX -A [ppx deriver plugin][] for converting OCaml values to and from JSON. Works -both in native (using `yojson` JSON representation) and [melange][] (using -`Js.Json.t` JSON representation). +A [ppx deriver plugin][] for converting OCaml values to and from JSON. Works on +[melange][] (using `Js.Json.t` JSON representation). ## Installation @@ -10,18 +9,11 @@ The PPX is included in `melange-json` package. To use it, just add the `dune` configuration to your project: ```dune -(executable - ... - (preprocess (pps melange-json.ppx-native))) - (library (modes melange) (preprocess (pps melange-json.ppx))) ``` -Note that you need to use the `melange-json.ppx-native` preprocessor for OCaml -native and the `melange-json.ppx` preprocessor for Melange. - ## Usage To generate JSON converters for a type, add the `[@@deriving json]` attribute to