Debian Codegraph @

test-suite/bugs/bug_14174.v

raw
1 (** Check that we avoid an extraction error that came up in PR #14174 in metacoq *)
2 Require Import Corelib.extraction.ExtrOcamlBasic.
3 Module A.
4 Include Corelib.Init.Specif.
5 End A.
6 Recursive Extraction A.
7 (* Avoding
8 Error:
9 The informative inductive type sig2 has a Prop instance
10 in A.eq_sig2_rec_uncurried (or in its mutual block).
11 This happens when a sort-polymorphic singleton inductive type
12 has logical parameters, such as (I,I) : (True * True) : Prop.
13 The Ocaml extraction cannot handle this situation yet.
14 Instead, use a sort-monomorphic type such as (True /\ True)
15 or extract to Haskell.
16 *)