diff options
author | Pierre-Marie Pédrot <pierre-marie.pedrot@inria.fr> | 2018-06-14 11:52:53 +0200 |
---|---|---|
committer | Pierre-Marie Pédrot <pierre-marie.pedrot@inria.fr> | 2018-06-14 11:52:53 +0200 |
commit | 49c39250ac1114c8d92166521f965835b5526b34 (patch) | |
tree | 07c1d4ca7b8beaeddb09472690cbba1cc1ba4d5c /library | |
parent | b5569f511338ebdc7d1053b25500acbffa3e3a40 (diff) | |
parent | 1522b9899b669f4fdd0fc9be1963c5e96d81a13f (diff) |
Merge PR #7193: Fixes #7192: Print Assumptions does not enter implementation of submodules.
Diffstat (limited to 'library')
-rw-r--r-- | library/global.ml | 3 | ||||
-rw-r--r-- | library/global.mli | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/library/global.ml b/library/global.ml index 6083c4079..dcb20a280 100644 --- a/library/global.ml +++ b/library/global.ml @@ -259,6 +259,9 @@ let is_type_in_type r = | IndRef ind -> Environ.type_in_type_ind ind env | ConstructRef cstr -> Environ.type_in_type_ind (inductive_of_constructor cstr) env +let current_modpath () = + Safe_typing.current_modpath (safe_env ()) + let current_dirpath () = Safe_typing.current_dirpath (safe_env ()) diff --git a/library/global.mli b/library/global.mli index 906d246ee..57e173cb9 100644 --- a/library/global.mli +++ b/library/global.mli @@ -157,6 +157,8 @@ val set_strategy : Constant.t Names.tableKey -> Conv_oracle.level -> unit (* Modifies the global state, registering new universes *) +val current_modpath : unit -> ModPath.t + val current_dirpath : unit -> DirPath.t val with_global : (Environ.env -> DirPath.t -> 'a Univ.in_universe_context_set) -> 'a |