Skip to content

Commit 73741a7

Browse files
authored
Merge pull request #22 from NathanReb/upgrade-ppxlib-0-18
Make ppx_yojson compatible with ppxlib.0.18.0
2 parents 6fb3b8c + c44fec5 commit 73741a7

File tree

5 files changed

+10
-4
lines changed

5 files changed

+10
-4
lines changed

CHANGES.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## unreleased
2+
3+
### Added
4+
5+
- Make ppx_yojson fully compatible with 4.11 (#22, @NathanReb)
6+
17
## 1.0.0
28

39
### Additions

dune-project

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@
1414
(depends
1515
(ocaml (>= 4.04.2))
1616
(alcotest :with-test)
17-
(ppxlib (and (>= 0.3.0) (< 0.18.0)))
17+
(ppxlib (>= 0.18.0))
1818
(yojson (and :with-test (>= 1.6.0)))))

lib/expression.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ let rec expand ~loc ~path expr =
2929
| [%expr None] -> [%expr `Null]
3030
| [%expr true] -> [%expr `Bool true]
3131
| [%expr false] -> [%expr `Bool false]
32-
| { pexp_desc = Pexp_constant (Pconst_string (s, None)); _ } ->
32+
| { pexp_desc = Pexp_constant (Pconst_string (s, _, None)); _ } ->
3333
expand_string ~loc s
3434
| { pexp_desc = Pexp_constant (Pconst_integer (s, None)); pexp_loc; _ } ->
3535
expand_int ~loc ~pexp_loc s

lib/pattern.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ let rec expand ~loc ~path pat =
3232
| [%pat? None] -> [%pat? `Null]
3333
| [%pat? true] -> [%pat? `Bool true]
3434
| [%pat? false] -> [%pat? `Bool false]
35-
| { ppat_desc = Ppat_constant (Pconst_string (s, None)); _ } ->
35+
| { ppat_desc = Ppat_constant (Pconst_string (s, _, None)); _ } ->
3636
expand_string ~loc s
3737
| { ppat_desc = Ppat_constant (Pconst_integer (s, None)); ppat_loc; _ } ->
3838
expand_int ~loc ~ppat_loc s

ppx_yojson.opam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ depends: [
1010
"dune" {>= "2.1"}
1111
"ocaml" {>= "4.04.2"}
1212
"alcotest" {with-test}
13-
"ppxlib" {>= "0.3.0" & < "0.18.0"}
13+
"ppxlib" {>= "0.18.0"}
1414
"yojson" {with-test & >= "1.6.0"}
1515
]
1616
build: [

0 commit comments

Comments
 (0)