Skip to content

Commit

Permalink
PPX: use ASTs from OCaml 4.09
Browse files Browse the repository at this point in the history
  • Loading branch information
aantron committed Sep 26, 2019
1 parent e1de517 commit 074f679
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lwt_ppx.opam
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ depends: [
"dune"
"lwt"
"ocaml" {>= "4.02.0"}
"ocaml-migrate-parsetree" {>= "1.3.0"}
"ocaml-migrate-parsetree" {>= "1.4.0"}
"ppx_tools_versioned" {>= "5.2.3"}
]

Expand Down
2 changes: 1 addition & 1 deletion src/ppx/dune
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
(libraries compiler-libs.common ocaml-migrate-parsetree ppx_tools_versioned)
(ppx_runtime_libraries lwt)
(kind ppx_rewriter)
(preprocess (pps ppx_tools_versioned.metaquot_408))
(preprocess (pps ppx_tools_versioned.metaquot_409))
(flags (:standard -w +A-4)))
6 changes: 3 additions & 3 deletions src/ppx/ppx_lwt.ml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
open! Migrate_parsetree
open! OCaml_408.Ast
open! OCaml_409.Ast
open Ast_mapper
open! Ast_helper
open Asttypes
open Parsetree

open Ast_convenience_408
open Ast_convenience_409

(** {2 Convenient stuff} *)

Expand Down Expand Up @@ -539,5 +539,5 @@ let args =
])

let () =
Driver.register ~name:"ppx_lwt" ~args Versions.ocaml_408
Driver.register ~name:"ppx_lwt" ~args Versions.ocaml_409
(fun _config _cookies -> mapper)
2 changes: 1 addition & 1 deletion src/ppx/ppx_lwt.mli
Original file line number Diff line number Diff line change
Expand Up @@ -199,4 +199,4 @@ else
*)


val mapper : Migrate_parsetree.OCaml_408.Ast.Ast_mapper.mapper
val mapper : Migrate_parsetree.OCaml_409.Ast.Ast_mapper.mapper

0 comments on commit 074f679

Please sign in to comment.