summaryrefslogtreecommitdiffstats
path: root/typing/typedtreeMap.ml
diff options
context:
space:
mode:
authorJacques Garrigue <garrigue at math.nagoya-u.ac.jp>2013-12-17 03:52:50 +0000
committerJacques Garrigue <garrigue at math.nagoya-u.ac.jp>2013-12-17 03:52:50 +0000
commitcfa350c31aebe2e06611d0fbb41fe88b1f30b8e8 (patch)
tree9809a9c320538a793866f1ca7a408fe09679a902 /typing/typedtreeMap.ml
parent024c8ad498a7c0fc35355c543d94a14bfd3fab51 (diff)
merge generative functors
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@14365 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'typing/typedtreeMap.ml')
-rw-r--r--typing/typedtreeMap.ml4
1 files changed, 2 insertions, 2 deletions
diff --git a/typing/typedtreeMap.ml b/typing/typedtreeMap.ml
index 5c9229950..669fd2eac 100644
--- a/typing/typedtreeMap.ml
+++ b/typing/typedtreeMap.ml
@@ -426,7 +426,7 @@ module MakeMap(Map : MapArgument) = struct
Tmty_ident (path, lid) -> mty.mty_desc
| Tmty_signature sg -> Tmty_signature (map_signature sg)
| Tmty_functor (id, name, mtype1, mtype2) ->
- Tmty_functor (id, name, map_module_type mtype1,
+ Tmty_functor (id, name, Misc.may_map map_module_type mtype1,
map_module_type mtype2)
| Tmty_with (mtype, list) ->
Tmty_with (map_module_type mtype,
@@ -456,7 +456,7 @@ module MakeMap(Map : MapArgument) = struct
Tmod_ident (p, lid) -> mexpr.mod_desc
| Tmod_structure st -> Tmod_structure (map_structure st)
| Tmod_functor (id, name, mtype, mexpr) ->
- Tmod_functor (id, name, map_module_type mtype,
+ Tmod_functor (id, name, Misc.may_map map_module_type mtype,
map_module_expr mexpr)
| Tmod_apply (mexp1, mexp2, coercion) ->
Tmod_apply (map_module_expr mexp1, map_module_expr mexp2, coercion)