diff options
| author | Emilio Jesus Gallego Arias | 2020-10-15 16:48:38 +0200 |
|---|---|---|
| committer | Emilio Jesus Gallego Arias | 2020-11-26 21:21:54 +0100 |
| commit | 5a9e90e426ba2e25cbcb76af2bb67717984e2b6b (patch) | |
| tree | 4e157b1813f96e0b9f4e6283d03e6b0b2f5e4e29 /library | |
| parent | b78f6424d9fa5a8027c4acb21b3e57ee6294bc5f (diff) | |
[kernel] Allow to set typing flags in add_mind [inductive]
Diffstat (limited to 'library')
| -rw-r--r-- | library/global.ml | 2 | ||||
| -rw-r--r-- | library/global.mli | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/library/global.ml b/library/global.ml index 238b9d554b..71cadb3600 100644 --- a/library/global.ml +++ b/library/global.ml @@ -107,7 +107,7 @@ let sprop_allowed () = Environ.sprop_allowed (env()) let export_private_constants cd = globalize (Safe_typing.export_private_constants cd) let add_constant ?typing_flags id d = globalize (Safe_typing.add_constant ?typing_flags (i2l id) d) let add_private_constant id d = globalize (Safe_typing.add_private_constant (i2l id) d) -let add_mind id mie = globalize (Safe_typing.add_mind (i2l id) mie) +let add_mind ?typing_flags id mie = globalize (Safe_typing.add_mind ?typing_flags (i2l id) mie) let add_modtype id me inl = globalize (Safe_typing.add_modtype (i2l id) me inl) let add_module id me inl = globalize (Safe_typing.add_module (i2l id) me inl) let add_include me ismod inl = globalize (Safe_typing.add_include me ismod inl) diff --git a/library/global.mli b/library/global.mli index 4c2d427925..c9b9d7f536 100644 --- a/library/global.mli +++ b/library/global.mli @@ -57,6 +57,7 @@ val add_constant : val add_private_constant : Id.t -> Safe_typing.side_effect_declaration -> Constant.t * Safe_typing.private_constants val add_mind : + ?typing_flags:Declarations.typing_flags -> Id.t -> Entries.mutual_inductive_entry -> MutInd.t (** Extra universe constraints *) |
