From a3e890a390e9541045b1ce4c024fffcca275ff90 Mon Sep 17 00:00:00 2001 From: aspiwack Date: Fri, 24 Aug 2012 10:14:49 +0000 Subject: Assumption commands are now displayed as unsafe in Coqide. They are still marked as safe if they are part of a module type, though. Also local assumptions such as "Hypothesis" or "Context" are displayed as unsafe if they happen to be defined without a section. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@15760 85f007b7-540e-0410-9357-904b9bb8a0f7 --- library/lib.mli | 3 +++ 1 file changed, 3 insertions(+) (limited to 'library/lib.mli') diff --git a/library/lib.mli b/library/lib.mli index eca3164e3..25c0e1b24 100644 --- a/library/lib.mli +++ b/library/lib.mli @@ -91,6 +91,9 @@ val sections_depth : unit -> int (** Are we inside an opened module type *) val is_module_or_modtype : unit -> bool val is_modtype : unit -> bool +(* [is_modtype_strict] checks not only if we are in a module type, but + if the latest module started is a module type. *) +val is_modtype_strict : unit -> bool val is_module : unit -> bool val current_mod_id : unit -> Names.module_ident -- cgit v1.2.3