Skip to Content.
Sympa Menu

coq-club - [Coq-Club] Application of not a functor

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] Application of not a functor


chronological Thread 
  • From: Edsko de Vries <devriese AT cs.tcd.ie>
  • To: coq-club AT pauillac.inria.fr
  • Subject: [Coq-Club] Application of not a functor
  • Date: Tue, 13 Nov 2007 09:56:38 +0000
  • List-archive: <http://pauillac.inria.fr/pipermail/coq-club/>

Hi,

I'm having some trouble with the module system. This works fine:

  Require Import OrderedType OrderedTypeEx.

  Module A (OT : OrderedType).
    Definition x := 5.
  End A.

  Module A_nat := A Nat_as_OT.

But then when I save that file as A.v, and then create a new file B.v:

  Require Import OrderedType OrderedTypeEx.
  Require Import A.

  Module A_nat_2 := A Nat_as_OT.

Coq complains:

  User error: Application of not a functor

What am I doing wrong? Thanks!

Edsko





Archive powered by MhonArc 2.6.16.

Top of Page