-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ppx: remove
string_to_json
usage on js side (#35)
- Loading branch information
Showing
4 changed files
with
63 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
|
||
$ echo '(lang dune 3.11) | ||
> (using melange 0.1)' > dune-project | ||
|
||
$ echo ' | ||
> (library | ||
> (name lib) | ||
> (modes melange) | ||
> (modules main) | ||
> (flags :standard -w -37-69) | ||
> (preprocess (pps melange.ppx melange-json.ppx))) | ||
> (melange.emit | ||
> (alias js) | ||
> (target output) | ||
> (modules) | ||
> (libraries lib) | ||
> (module_systems commonjs))' > dune | ||
|
||
$ echo ' | ||
> type sum = A [@@deriving json] | ||
> let json = sum_to_json A | ||
> ' >> main.ml | ||
|
||
Can build without having to open Ppx_deriving_json_runtime.Primitives | ||
|
||
$ dune build @js |