aboutsummaryrefslogtreecommitdiff
path: root/interp/notation_ops.mli
diff options
context:
space:
mode:
authorEmilio Jesus Gallego Arias2020-02-11 23:21:09 +0100
committerEmilio Jesus Gallego Arias2020-02-11 23:21:09 +0100
commit44c3458deb687814379f7d05b27487b0ff9f2d38 (patch)
tree27187ccdeb7609120e9a76814cd0d369945afc85 /interp/notation_ops.mli
parentcbf5e7e49cfa243b6eac808241894fc504d84e5f (diff)
parente85a9c7010f48fb0b79496f426df996b4e3dbb2e (diff)
Merge PR #11509: Add changelog and fixes for #10202
Reviewed-by: Zimmi48 Reviewed-by: ejgallego
Diffstat (limited to 'interp/notation_ops.mli')
-rw-r--r--interp/notation_ops.mli11
1 files changed, 10 insertions, 1 deletions
diff --git a/interp/notation_ops.mli b/interp/notation_ops.mli
index f9de6b7d6b..c62dac013b 100644
--- a/interp/notation_ops.mli
+++ b/interp/notation_ops.mli
@@ -35,12 +35,21 @@ val notation_constr_of_glob_constr : notation_interp_env ->
(** Re-interpret a notation as a [glob_constr], taking care of binders *)
+type 'a binder_status_fun = {
+ no : 'a -> 'a;
+ restart_prod : 'a -> 'a;
+ restart_lambda : 'a -> 'a;
+ switch_prod : 'a -> 'a;
+ switch_lambda : 'a -> 'a;
+ slide : 'a -> 'a;
+}
+
val apply_cases_pattern : ?loc:Loc.t ->
(Id.t list * cases_pattern_disjunction) * Id.t -> glob_constr -> glob_constr
val glob_constr_of_notation_constr_with_binders : ?loc:Loc.t ->
('a -> Name.t -> 'a * ((Id.t list * cases_pattern_disjunction) * Id.t) option * Name.t) ->
- ('a -> notation_constr -> glob_constr) ->
+ ('a -> notation_constr -> glob_constr) -> ?h:'a binder_status_fun ->
'a -> notation_constr -> glob_constr
val glob_constr_of_notation_constr : ?loc:Loc.t -> notation_constr -> glob_constr