From 6123ff3b969fdcc31e6ea44a5f2f6f4c52cd1708 Mon Sep 17 00:00:00 2001 From: "Hezekiah M. Carty" Date: Mon, 4 May 2020 12:42:46 -0600 Subject: [PATCH] Update to OCaml 4.10 AST --- CHANGES.md | 4 ++-- dune-project | 2 +- ppx_defer.opam | 2 +- src/dune | 2 +- src/ppx_defer.ml | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 1807718..9688b1f 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,8 +1,8 @@ -# vNext +# v0.4.0 * Upgrade to dune * Use dune to generate opam metadata -* Use 4.08 AST from ocaml-migrate-parsetree and ppx\_tools\_versioned +* Use 4.10 AST from ocaml-migrate-parsetree and ppx\_tools\_versioned # v0.3.0 diff --git a/dune-project b/dune-project index ddea3e1..e86270b 100644 --- a/dune-project +++ b/dune-project @@ -16,5 +16,5 @@ (depends (ocaml (>= 4.02.3)) (dune (>= 2.0)) - ocaml-migrate-parsetree + (ocaml-migrate-parsetree (>= 1.5.0)) ppx_tools_versioned)) diff --git a/ppx_defer.opam b/ppx_defer.opam index dbcbef6..b751173 100644 --- a/ppx_defer.opam +++ b/ppx_defer.opam @@ -9,7 +9,7 @@ bug-reports: "https://github.com/hcarty/ppx_defer/issues" depends: [ "ocaml" {>= "4.02.3"} "dune" {>= "2.0"} - "ocaml-migrate-parsetree" + "ocaml-migrate-parsetree" {>= "1.5.0"} "ppx_tools_versioned" ] build: [ diff --git a/src/dune b/src/dune index b6c20e8..dc9edee 100644 --- a/src/dune +++ b/src/dune @@ -6,4 +6,4 @@ (libraries compiler-libs.common ocaml-migrate-parsetree) (kind ppx_rewriter) (preprocess - (pps ppx_tools_versioned.metaquot_408))) + (pps ppx_tools_versioned.metaquot_410))) diff --git a/src/ppx_defer.ml b/src/ppx_defer.ml index 0e7cf47..1a7f410 100644 --- a/src/ppx_defer.ml +++ b/src/ppx_defer.ml @@ -1,5 +1,5 @@ open Migrate_parsetree -open OCaml_408.Ast +open OCaml_410.Ast open Ast_mapper open Parsetree @@ -68,5 +68,5 @@ let defer_mapper = } let () = - Driver.register ~name:"ppx_defer" Versions.ocaml_408 + Driver.register ~name:"ppx_defer" Versions.ocaml_410 (fun _config _cookies -> defer_mapper)