From cfbfe13f5b515ae2e3c6cdd97e2ccee03bc26e56 Mon Sep 17 00:00:00 2001 From: Stephane Glondu Date: Sun, 1 Feb 2009 00:54:40 +0100 Subject: Imported Upstream version 8.2~rc2+dfsg --- library/decl_kinds.mli | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'library/decl_kinds.mli') diff --git a/library/decl_kinds.mli b/library/decl_kinds.mli index 9358c4b5..70c63c39 100644 --- a/library/decl_kinds.mli +++ b/library/decl_kinds.mli @@ -6,7 +6,7 @@ (* * GNU Lesser General Public License Version 2.1 *) (************************************************************************) -(* $Id: decl_kinds.mli 11024 2008-05-30 12:41:39Z msozeau $ *) +(* $Id: decl_kinds.mli 11809 2009-01-20 11:39:55Z aspiwack $ *) open Util open Libnames @@ -82,3 +82,13 @@ val string_of_definition_kind : val strength_of_global : global_reference -> locality val string_of_strength : locality -> string + +(* About recursive power of type declarations *) + +type recursivity_kind = + | Finite (* = inductive *) + | CoFinite (* = coinductive *) + | BiFinite (* = non-recursive, like in "Record" definitions *) + +(* helper, converts to "finiteness flag" booleans *) +val recursivity_flag_of_kind : recursivity_kind -> bool -- cgit v1.2.3