diff options
| author | Pierre-Marie Pédrot | 2021-01-21 15:16:30 +0100 |
|---|---|---|
| committer | Pierre-Marie Pédrot | 2021-03-10 12:23:41 +0100 |
| commit | e976e2cc4ad8fd361aa54b071543f75dbb532ccd (patch) | |
| tree | a602d5b5331a107230eeb41b9459315655302416 /user-contrib/Ltac2/tac2env.mli | |
| parent | e16a73156d92a6510e34e54a829f43f294820646 (diff) | |
Allow to register deprecation status in Ltac2 term and notation declarations.
Diffstat (limited to 'user-contrib/Ltac2/tac2env.mli')
| -rw-r--r-- | user-contrib/Ltac2/tac2env.mli | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/user-contrib/Ltac2/tac2env.mli b/user-contrib/Ltac2/tac2env.mli index 95dcdd7e1b..3800ad0198 100644 --- a/user-contrib/Ltac2/tac2env.mli +++ b/user-contrib/Ltac2/tac2env.mli @@ -23,6 +23,7 @@ type global_data = { gdata_expr : glb_tacexpr; gdata_type : type_scheme; gdata_mutable : bool; + gdata_deprecation : Deprecation.t option; } val define_global : ltac_constant -> global_data -> unit @@ -72,8 +73,13 @@ val interp_projection : ltac_projection -> projection_data (** {5 Toplevel definition of aliases} *) -val define_alias : ltac_constant -> raw_tacexpr -> unit -val interp_alias : ltac_constant -> raw_tacexpr +type alias_data = { + alias_body : raw_tacexpr; + alias_depr : Deprecation.t option; +} + +val define_alias : ?deprecation:Deprecation.t -> ltac_constant -> raw_tacexpr -> unit +val interp_alias : ltac_constant -> alias_data (** {5 Name management} *) |
