Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate to ppxlib #15

Merged
merged 1 commit into from
Apr 21, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions lens.opam
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ build: [
depends: [
"ocaml" {>= "4.10"}
"ppx_deriving"
"ppx_tools" {build}
"ppxfind" {build}
"ppxlib" {build}
"dune" {>= "1.0"}
"ounit" {with-test}
]
Expand Down
3 changes: 1 addition & 2 deletions src/dune
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
(synopsis "[@@deriving lens]")
(libraries ppx_deriving.api)
(preprocess
(action
(run ppxfind -legacy ppx_tools.metaquot --as-pp %{input-file})))
(pps ppxlib.metaquot))
(ppx_runtime_libraries lens)
(modules ppx_deriving_lens)
(kind ppx_deriver))
11 changes: 5 additions & 6 deletions src/ppx_deriving_lens.ml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
open Longident
open Location
open Asttypes
open Parsetree
open Ast_helper
open Ast_convenience
open Ppxlib.Longident
open Ppxlib.Asttypes
open Ppxlib.Parsetree
open Ppxlib.Ast_helper
open Ppx_deriving.Ast_convenience

let deriver = "lens"
let raise_errorf = Ppx_deriving.raise_errorf
Expand Down