aboutsummaryrefslogtreecommitdiffhomepage
path: root/interp/topconstr.ml
diff options
context:
space:
mode:
Diffstat (limited to 'interp/topconstr.ml')
-rw-r--r--interp/topconstr.ml5
1 files changed, 4 insertions, 1 deletions
diff --git a/interp/topconstr.ml b/interp/topconstr.ml
index 12ce52d1b..a6b4b1b0a 100644
--- a/interp/topconstr.ml
+++ b/interp/topconstr.ml
@@ -1001,7 +1001,6 @@ type with_declaration_ast =
| CWith_Module of identifier list located * qualid located
| CWith_Definition of identifier list located * constr_expr
-
type module_ast =
| CMEident of qualid located
| CMEapply of module_ast * module_ast
@@ -1015,6 +1014,10 @@ type include_ast =
| CIMTE of module_type_ast * module_type_ast list
| CIME of module_ast * module_ast list
+type 'a module_signature =
+ | Enforce of 'a (* ... : T *)
+ | Check of 'a list (* ... <: T1 <: T2, possibly empty *)
+
let loc_of_notation f loc (args,_) ntn =
if args=[] or ntn.[0] <> '_' then fst (Util.unloc loc)
else snd (Util.unloc (f (List.hd args)))