coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Christopher Ernest Sally <christopherernestsally AT gmail.com>
- To: coq-club <coq-club AT inria.fr>
- Subject: [Coq-Club] Incompatible Module Types
- Date: Wed, 4 Jun 2014 11:04:15 +0800
Hi all
(* file A.v *)
(* B.v *)
I'm trying to learn how to write modules/module types.
I tried out the example at cocorico and am now try to do a interface-implementation thing, but am getting the error incompatible module type when I try to close the implementation module (called "Implementation" in file B.v)
I include the files here. Could any point out what I'm doing wrong? Thanks!
Warm regards
Chris
(* file A.v *)
Module Type TKV.
Parameter ht k v : Type.
End TKV.
Require Import Orders Equalities.
Module Type Interface (K : OrderedType)(V : DecidableType)
(Import T : TKV).
Parameter empty : ht.
End Interface.
(* A.v *)
(* B.v *)
Require A. (* of course I have already compiled A *)
Include A.
Require Import List Bool Orders Equalities.
Module Implementation (X : OrderedType)(Y : DecidableType)
<: A.Interface X Y.
Definition empty := @nil (prod X.t Y.t) .
End Implementation.
(* B.v *)
Attachment:
A.v
Description: Binary data
Attachment:
B.v
Description: Binary data
- [Coq-Club] Incompatible Module Types, Christopher Ernest Sally, 06/04/2014
- Re: [Coq-Club] Incompatible Module Types, Beta Ziliani, 06/04/2014
- Re: [Coq-Club] Incompatible Module Types, Christopher Ernest Sally, 06/11/2014
- Re: [Coq-Club] Incompatible Module Types, Cedric Auger, 06/11/2014
- Re: [Coq-Club] Incompatible Module Types, Christopher Ernest Sally, 06/13/2014
- Re: [Coq-Club] Incompatible Module Types, Cedric Auger, 06/13/2014
- Re: [Coq-Club] Incompatible Module Types, Christopher Ernest Sally, 06/13/2014
- Re: [Coq-Club] Incompatible Module Types, Cedric Auger, 06/13/2014
- Re: [Coq-Club] Incompatible Module Types, Christopher Ernest Sally, 06/13/2014
- Re: [Coq-Club] Incompatible Module Types, Cedric Auger, 06/11/2014
- Re: [Coq-Club] Incompatible Module Types, Christopher Ernest Sally, 06/11/2014
- Re: [Coq-Club] Incompatible Module Types, Beta Ziliani, 06/04/2014
Archive powered by MHonArc 2.6.18.