Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 96ff5e7e authored by Thierry Martinez's avatar Thierry Martinez
Browse files

Update for traverse

parent a1c17976
Branches
No related tags found
No related merge requests found
Pipeline #124778 failed
...@@ -3,4 +3,4 @@ ...@@ -3,4 +3,4 @@
(public_name clangml-transforms) (public_name clangml-transforms)
(preprocess (pps refl.ppx)) (preprocess (pps refl.ppx))
(wrapped false) (wrapped false)
(libraries clangml refl dolog)) (libraries clangml refl dolog traverse))
...@@ -167,14 +167,16 @@ let plus_with_warning (a : accu) (b : accu) : accu = ...@@ -167,14 +167,16 @@ let plus_with_warning (a : accu) (b : accu) : accu =
Free_monoid.plus a b Free_monoid.plus a b
module Applicative = module Applicative =
Refl.Visit.EnvT (struct type t = env end) Traverse.Applicative.Env (struct type t = env end)
(Refl.Visit.ReduceT (struct (Traverse.Applicative.Pair
type t = accu (Traverse.Applicative.Map)
(Traverse.Applicative.Reduce (struct
type t = accu
let zero = Free_monoid.zero let zero = Free_monoid.zero
let ( + ) = plus_with_warning let ( + ) = plus_with_warning
end) (Refl.Visit.Map)) end)))
module rec Visitor : Refl.Visit.VisitorS module rec Visitor : Refl.Visit.VisitorS
with type 'a Applicative.t = 'a Applicative.t = struct with type 'a Applicative.t = 'a Applicative.t = struct
......
...@@ -18,4 +18,5 @@ ...@@ -18,4 +18,5 @@
(ocaml (and (>= 4.03.0) (< 4.11.0))) (ocaml (and (>= 4.03.0) (< 4.11.0)))
(dune (>= 2.2.0)) (dune (>= 2.2.0))
(clangml (>= 4.1.0)) (clangml (>= 4.1.0))
(dolog (>= 4.0.0)))) (dolog (>= 4.0.0))
(traverse (>= 0.1.0))))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment