Skip to content

Commit

Permalink
rename ppxs and runtimes
Browse files Browse the repository at this point in the history
  • Loading branch information
jchavarri committed Aug 15, 2024
1 parent 3f71278 commit d3c6e5d
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
8 changes: 4 additions & 4 deletions ppx/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ configuration to your project:
```dune
(executable
...
(preprocess (pps melange-json.native)))
(preprocess (pps melange-json.ppx-native)))
(library
(modes melange)
(preprocess (pps melange-json.js)))
(preprocess (pps melange-json.ppx)))
```

Note that you need to use the `melange-json.native` preprocessor for OCaml
native and the `melange-json.js` preprocessor for Melange.
Note that you need to use the `melange-json.ppx-native` preprocessor for OCaml
native and the `melange-json.ppx` preprocessor for Melange.

## Usage

Expand Down
8 changes: 4 additions & 4 deletions ppx/browser/dune
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
(library
(public_name melange-json.js)
(public_name melange-json.ppx)
(name ppx_deriving_json_js)
(modules
:standard
\
ppx_deriving_json_runtime
ppx_deriving_json_js_test)
(libraries ppxlib)
(ppx_runtime_libraries melange-json.js_runtime)
(ppx_runtime_libraries melange-json.ppx-runtime)
(preprocess
(pps ppxlib.metaquot))
(kind ppx_deriver))

(library
(public_name melange-json.js_runtime)
(public_name melange-json.ppx-runtime)
(name ppx_deriving_json_js_runtime)
(modules ppx_deriving_json_runtime)
(wrapped false)
Expand All @@ -22,7 +22,7 @@
(executable
(name ppx_deriving_json_js_test)
(modules ppx_deriving_json_js_test)
(libraries melange-json.js ppxlib))
(libraries melange-json.ppx ppxlib))

(rule
(target ppx_deriving_json_js.mli)
Expand Down
8 changes: 4 additions & 4 deletions ppx/native/dune
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
(library
(public_name melange-json.native)
(public_name melange-json.ppx-native)
(name ppx_deriving_json_native)
(modules
:standard
\
ppx_deriving_json_runtime
ppx_deriving_json_native_test)
(libraries ppxlib)
(ppx_runtime_libraries melange-json.native_runtime)
(ppx_runtime_libraries melange-json.ppx-native-runtime)
(preprocess
(pps ppxlib.metaquot))
(kind ppx_deriver))

(library
(public_name melange-json.native_runtime)
(public_name melange-json.ppx-native-runtime)
(name ppx_deriving_json_native_runtime)
(wrapped false)
(modules ppx_deriving_json_runtime)
Expand All @@ -22,7 +22,7 @@
(executable
(name ppx_deriving_json_native_test)
(modules ppx_deriving_json_native_test)
(libraries melange-json.native ppxlib))
(libraries melange-json.ppx-native ppxlib))

(rule
(target ppx_deriving_json_native.mli)
Expand Down
2 changes: 1 addition & 1 deletion ppx/test/ppx_deriving_json_js.e2e.t
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
> (modes melange)
> (modules example main)
> (flags :standard -w -37-69 -open Ppx_deriving_json_runtime.Primitives)
> (preprocess (pps melange.ppx melange-json.js)))
> (preprocess (pps melange.ppx melange-json.ppx)))
> (melange.emit
> (alias js)
> (target output)
Expand Down
2 changes: 1 addition & 1 deletion ppx/test/ppx_deriving_json_native.e2e.t
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
> (name main)
> (libraries yojson)
> (flags :standard -w -37-69 -open Ppx_deriving_json_runtime.Primitives)
> (preprocess (pps melange-json.native)))' > dune
> (preprocess (pps melange-json.ppx-native)))' > dune

$ echo '
> open Example
Expand Down

0 comments on commit d3c6e5d

Please sign in to comment.