Skip to content

Commit

Permalink
Merge pull request #69 from pitag-ha/ppxlib.0.25.0-compatibility
Browse files Browse the repository at this point in the history
Ppxlib.0.26.0 compatibility
  • Loading branch information
ejgallego authored Jun 14, 2022
2 parents 6500a27 + 838084a commit a3d84b7
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
unreleased
-----

* Update ppxlib to 0.26.0 (#69, @pitag-ha)

1.9.1
-----

Expand Down
14 changes: 12 additions & 2 deletions ppx_import.opam
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,22 @@ dev-repo: "git+https://github.com/ocaml-ppx/ppx_import.git"
tags: [ "syntax" ]

depends: [
"ocaml" { >= "4.05.0" }
(
"ocaml" {>= "4.05.0" & < "4.10.0" }
"dune" { >= "1.11.0" }
"ppxlib" { >= "0.24.0" & < "0.26" }
"ppxlib" { >= "0.26.0" }
"ounit" { with-test }
"ppx_deriving" { with-test & >= "4.2.1" }
)
|
(
"ocaml" { >= "4.10.0" }
"ppx_sexp_conv" { with-test & >= "v0.13.0" }
"dune" { >= "1.11.0" }
"ppxlib" { >= "0.26.0" }
"ounit" { with-test }
"ppx_deriving" { with-test & >= "4.2.1" }
)
]

build: [["dune" "build" "-p" name "-j" jobs]
Expand Down
1 change: 1 addition & 0 deletions src/ppx_import.ml
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,7 @@ let ptype_decl_of_ttype_decl ~manifest ~subst ptype_name
in
{ pcd_name =
{txt = Ocaml_common.Ident.name cd.cd_id; loc = cd.cd_loc}
; pcd_vars = []
; pcd_args = map_args cd.cd_args
; pcd_res
; pcd_loc = cd.cd_loc
Expand Down
2 changes: 2 additions & 0 deletions src_test/ppx_deriving_sexp/dune
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
(test
(name test_ppx_deriving_sexp)
(enabled_if
(>= %{ocaml_version} "4.10.0"))
(preprocess
(staged_pps ppx_import ppx_sexp_conv)))

0 comments on commit a3d84b7

Please sign in to comment.