From 832748da991524634cbbac7baa53a7542d662259 Mon Sep 17 00:00:00 2001 From: Thomas Refis Date: Fri, 16 Mar 2018 15:08:08 +0000 Subject: [PATCH] v0.11.116.17+187 --- CHANGES.md | 4 ++++ ppx_let.opam | 6 +++--- src/jbuild | 2 +- src/ppx_let.ml | 5 +++-- test/jbuild | 2 +- 5 files changed, 12 insertions(+), 7 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 03abc5dce..b84af5327 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,3 +1,7 @@ +## v0.11 + +- Depend on ppxlib instead of (now deprecated) ppx\_core and ppx\_driver. + ## 113.43.00 - Dropped `Open_in_body` support from ppx\_let, since it was only ever used diff --git a/ppx_let.opam b/ppx_let.opam index f8112c827..94dc50ac5 100644 --- a/ppx_let.opam +++ b/ppx_let.opam @@ -9,10 +9,10 @@ build: [ ["jbuilder" "build" "-p" name "-j" jobs] ] depends: [ - "ppx_core" - "ppx_driver" - "jbuilder" {build & >= "1.0+beta12"} + "base" + "jbuilder" {build & >= "1.0+beta18.1"} "ocaml-migrate-parsetree" {>= "1.0"} + "ppxlib" {>= "0.1.1"} ] available: [ ocaml-version >= "4.04.1" ] descr: " diff --git a/src/jbuild b/src/jbuild index cd2e6bc43..e4ada02f2 100644 --- a/src/jbuild +++ b/src/jbuild @@ -3,7 +3,7 @@ (public_name ppx_let) (kind ppx_rewriter) (flags (:standard -safe-string)) - (libraries (ppx_core ppx_driver)) + (libraries (base ppxlib)) (preprocess no_preprocessing))) (jbuild_version 1) diff --git a/src/ppx_let.ml b/src/ppx_let.ml index 20cb0ca0c..e44d12324 100644 --- a/src/ppx_let.ml +++ b/src/ppx_let.ml @@ -1,4 +1,5 @@ -open Ppx_core +open Base +open Ppxlib open Ast_builder.Default module List = struct @@ -140,7 +141,7 @@ let ext extension_name = ;; let () = - Ppx_driver.register_transformation "let" + Driver.register_transformation "let" ~extensions:[ ext Bind; ext Bind_open; diff --git a/test/jbuild b/test/jbuild index 03a426849..c018f5a9c 100644 --- a/test/jbuild +++ b/test/jbuild @@ -1,7 +1,7 @@ (executables ( (names (test)) (flags (:standard -safe-string)) - (preprocess (pps (ppx_let ppx_driver.runner))))) + (preprocess (pps (ppx_let ppxlib.runner))))) (jbuild_version 1)