aboutsummaryrefslogtreecommitdiff
path: root/interp/notation.mli
diff options
context:
space:
mode:
authorHugo Herbelin2020-07-11 20:02:44 +0200
committerHugo Herbelin2020-07-12 10:05:25 +0200
commit8b971260dc6381f4eaa004056c53302f291aef7e (patch)
treec0962f6ef7966e06e324f20aab7a62162b7d88b3 /interp/notation.mli
parentf4593ab277c12eda7e000011eeb2276716ac9a09 (diff)
Fixes #12682 (recursive notation printing bug with n-ary applications).
A special case for recursive n-ary applications was missing when the head of the application was a reference.
Diffstat (limited to 'interp/notation.mli')
-rw-r--r--interp/notation.mli7
1 files changed, 6 insertions, 1 deletions
diff --git a/interp/notation.mli b/interp/notation.mli
index c39bfa6e28..05ddd25a62 100644
--- a/interp/notation.mli
+++ b/interp/notation.mli
@@ -239,7 +239,12 @@ val declare_uninterpretation : interp_rule -> interpretation -> unit
val interp_notation : ?loc:Loc.t -> notation -> subscopes ->
interpretation * (notation_location * scope_name option)
-type notation_rule = interp_rule * interpretation * int option
+type notation_applicative_status =
+ | AppBoundedNotation of int
+ | AppUnboundedNotation
+ | NotAppNotation
+
+type notation_rule = interp_rule * interpretation * notation_applicative_status
(** Return the possible notations for a given term *)
val uninterp_notations : 'a glob_constr_g -> notation_rule list