From 984890d972aaa0586b509058dc4fcea5f2c3ca2d Mon Sep 17 00:00:00 2001 From: letouzey Date: Thu, 25 Aug 2011 16:54:51 +0000 Subject: Extraction: allow extraction of records with anonymous fields (fix #2555) For Ocaml, we now use the extraction-reserved substring "__" : The name foo__i will be pick for i-th field of record foo if it is anonymous. For Haskell, still no printing of records as native records, hence nothing to do. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@14420 85f007b7-540e-0410-9357-904b9bb8a0f7 --- plugins/extraction/miniml.mli | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/extraction/miniml.mli') diff --git a/plugins/extraction/miniml.mli b/plugins/extraction/miniml.mli index 87ddcc7b4..edff48c85 100644 --- a/plugins/extraction/miniml.mli +++ b/plugins/extraction/miniml.mli @@ -55,7 +55,7 @@ type inductive_kind = | Singleton | Coinductive | Standard - | Record of global_reference list + | Record of global_reference option list (* None for anonymous field *) (* A [ml_ind_packet] is the miniml counterpart of a [one_inductive_body]. If the inductive is logical ([ip_logical = false]), then all other fields -- cgit v1.2.3