Skip to content

Commit 37bab24

Browse files
committed
1 parent fef51be commit 37bab24

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

template-coq/src/plugin_core.ml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,12 +197,12 @@ let quote_module ~(include_functor : bool) ~(include_submodule : bool) ~(include
197197
| SFBconst _ -> [GlobRef.ConstRef (Constant.make2 mp label)]
198198
| SFBmind _ -> [GlobRef.IndRef (MutInd.make2 mp label, 0)]
199199
| SFBrules _ -> failwith "Rewrite rules are not supported by TemplateCoq"
200-
| SFBmodule mb -> if include_submodule then aux (mod_type mb) (mod_mp mb) else []
201-
| SFBmodtype mtb -> if include_submodtype then aux (mod_type mtb) (mod_mp mtb) else []
200+
| SFBmodule mb -> if include_submodule then aux (mod_type mb) (MPdot (mp, label)) else []
201+
| SFBmodtype mtb -> if include_submodtype then aux (mod_type mtb) (MPdot (mp, label)) else []
202202
in
203203
CList.map_append get_ref body
204204
in aux' mb mp
205-
in aux (mod_type mb) (mod_mp mb)
205+
in aux (mod_type mb) mp
206206

207207
let tmQuoteModule (qualid : qualid) : global_reference list tm =
208208
fun ~st env evd success _fail ->

0 commit comments

Comments
 (0)