Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/build-wasm_of_ocaml.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ jobs:
run: |
opam repo add js janestreet/opam-repository
opam install opam-format
opam pin add ppxlib -n 0.35.0
opam exec -- dune exec --root wasm_of_ocaml tools/ci_setup.exe

- name: Pin Jane Street packages
Expand Down
15 changes: 6 additions & 9 deletions dune-project
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
(ocaml (and (>= 4.13) (< 5.4)))
(num :with-test)
(ppx_expect (and (>= v0.16.1) :with-test))
(ppxlib (>= 0.15))
(ppxlib (>= 0.35))
(re :with-test)
(cmdliner (>= 1.1.0))
(sedlex (>= 3.3))
Expand Down Expand Up @@ -49,7 +49,6 @@
(lwt (>= 2.4.4))
(num :with-test)
(ppx_expect (and (>= v0.14.2) :with-test))
(ppxlib (and (>= 0.22.0) :with-test))
(re (and (>= 1.9.0) :with-test)))
(depopts
graphics
Expand All @@ -64,7 +63,7 @@
(depends
(ocaml (>= 4.13))
(js_of_ocaml (= :version))
(ppxlib (>= 0.15))
(ppxlib (>= 0.35))
(num :with-test)
(ppx_expect (and (>= v0.14.2) :with-test))
(re (and (>= 1.9.0) :with-test))
Expand All @@ -78,8 +77,7 @@
(depends
(ocaml (>= 4.13))
(js_of_ocaml (= :version))
(ppxlib (>= 0.15))
(ppxlib (and (< 0.36) :with-test))
(ppxlib (>= 0.35))
(num :with-test)
(ppx_expect (and (>= v0.14.2) :with-test))
(re (and (>= 1.9.0) :with-test))
Expand All @@ -98,7 +96,7 @@
(graphics :with-test)
(num :with-test)
(ppx_expect (and (>= v0.14.2) :with-test))
(ppxlib (>= 0.15))
(ppxlib (>= 0.35))
(re (and (>= 1.9.0) :with-test))
))

Expand All @@ -116,7 +114,6 @@
(tyxml (>= 4.6))
(num :with-test)
(ppx_expect (and (>= v0.14.2) :with-test))
(ppxlib (and (>= 0.22.0) :with-test))
(re (and (>= 1.9.0) :with-test))
))

Expand All @@ -128,9 +125,9 @@
(depends
(ocaml (>= 4.13))
(js_of_ocaml-compiler (= :version))
(ppxlib (>= 0.15))
(num :with-test)
(ppx_expect (and (>= v0.14.2) :with-test))
(ppxlib (>= 0.35))
(re (and (>= 1.9.0) :with-test))
))

Expand All @@ -144,7 +141,7 @@
(js_of_ocaml (= :version))
(num :with-test)
(ppx_expect (and (>= v0.14.2) :with-test))
(ppxlib (>= 0.15))
(ppxlib (>= 0.35))
(re :with-test)
(cmdliner (>= 1.1.0))
(opam-format :with-test)
Expand Down
2 changes: 1 addition & 1 deletion js_of_ocaml-compiler.opam
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ depends: [
"ocaml" {>= "4.13" & < "5.4"}
"num" {with-test}
"ppx_expect" {>= "v0.16.1" & with-test}
"ppxlib" {>= "0.15"}
"ppxlib" {>= "0.35"}
"re" {with-test}
"cmdliner" {>= "1.1.0"}
"sedlex" {>= "3.3"}
Expand Down
1 change: 0 additions & 1 deletion js_of_ocaml-lwt.opam
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ depends: [
"lwt" {>= "2.4.4"}
"num" {with-test}
"ppx_expect" {>= "v0.14.2" & with-test}
"ppxlib" {>= "0.22.0" & with-test}
"re" {>= "1.9.0" & with-test}
"odoc" {with-doc}
]
Expand Down
3 changes: 1 addition & 2 deletions js_of_ocaml-ppx.opam
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ depends: [
"dune" {>= "3.19"}
"ocaml" {>= "4.13"}
"js_of_ocaml" {= version}
"ppxlib" {>= "0.15"}
"ppxlib" {< "0.36" & with-test}
"ppxlib" {>= "0.35"}
"num" {with-test}
"ppx_expect" {>= "v0.14.2" & with-test}
"re" {>= "1.9.0" & with-test}
Expand Down
2 changes: 1 addition & 1 deletion js_of_ocaml-ppx_deriving_json.opam
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ depends: [
"dune" {>= "3.19"}
"ocaml" {>= "4.13"}
"js_of_ocaml" {= version}
"ppxlib" {>= "0.15"}
"ppxlib" {>= "0.35"}
"num" {with-test}
"ppx_expect" {>= "v0.14.2" & with-test}
"re" {>= "1.9.0" & with-test}
Expand Down
2 changes: 1 addition & 1 deletion js_of_ocaml-toplevel.opam
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ depends: [
"graphics" {with-test}
"num" {with-test}
"ppx_expect" {>= "v0.14.2" & with-test}
"ppxlib" {>= "0.15"}
"ppxlib" {>= "0.35"}
"re" {>= "1.9.0" & with-test}
"odoc" {with-doc}
]
Expand Down
1 change: 0 additions & 1 deletion js_of_ocaml-tyxml.opam
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ depends: [
"tyxml" {>= "4.6"}
"num" {with-test}
"ppx_expect" {>= "v0.14.2" & with-test}
"ppxlib" {>= "0.22.0" & with-test}
"re" {>= "1.9.0" & with-test}
"odoc" {with-doc}
]
Expand Down
2 changes: 1 addition & 1 deletion js_of_ocaml.opam
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ depends: [
"dune" {>= "3.19"}
"ocaml" {>= "4.13"}
"js_of_ocaml-compiler" {= version}
"ppxlib" {>= "0.15"}
"num" {with-test}
"ppx_expect" {>= "v0.14.2" & with-test}
"ppxlib" {>= "0.35"}
"re" {>= "1.9.0" & with-test}
"odoc" {with-doc}
]
Expand Down
7 changes: 6 additions & 1 deletion ppx/ppx_deriving_json/lib/ppx_deriving_json.ml
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,12 @@ let poly_fun_of_type_decl type_decl expr =
fold_right_type_decl
(fun name expr ->
let name = name.txt in
Exp.fun_ nolabel None (pvar ("poly_" ^ name)) expr)
Ppxlib.Ast_builder.Default.pexp_fun
~loc:Location.none
nolabel
None
(pvar ("poly_" ^ name))
expr)
type_decl
expr

Expand Down
2 changes: 1 addition & 1 deletion ppx/ppx_deriving_json/tests/dune
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
(rule
(alias runtest)
(enabled_if
(>= %{ocaml_version} 5.2))
(>= %{ocaml_version} 5.3))
;; (package js_of_ocaml-ppx)
(action
(diff gen.mlt gen.mlt.corrected)))
Loading
Loading