From b63cd131e8b4a5600973c860d2ccc6e3e5c8ce91 Mon Sep 17 00:00:00 2001 From: letouzey Date: Mon, 4 Jan 2010 17:50:38 +0000 Subject: Specific syntax for Instances in Module Type: Declare Instance NB: the grammar entry is placed in vernac:command on purpose even if it should have gone into vernac:gallina_ext. Camlp4 isn't factorising rules starting by "Declare" in a correct way otherwise... git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@12623 85f007b7-540e-0410-9357-904b9bb8a0f7 --- doc/refman/Classes.tex | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'doc') diff --git a/doc/refman/Classes.tex b/doc/refman/Classes.tex index 0ddbb6d894..1ea07f79a2 100644 --- a/doc/refman/Classes.tex +++ b/doc/refman/Classes.tex @@ -340,6 +340,14 @@ priority as for auto hints. \item {\tt Program Instance} \comindex{Program Instance} Switches the type-checking to \Program~(chapter \ref{Program}) and uses the obligation mechanism to manage missing fields. + +\item {\tt Declare Instance} \comindex{Declare Instance} + In a {\tt Module Type}, this command states that a corresponding + concrete instance should exist in any implementation of this + {\tt Module Type}. This is similar to the distinction between + {\tt Parameter} vs. {\tt Definition}, or between {\tt Declare Module} + and {\tt Module}. + \end{Variants} Besides the {\tt Class} and {\tt Instance} vernacular commands, there -- cgit v1.2.3