caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Julien Signoles <Julien.Signoles@lri.fr>
To: Damien Bobillot <damien.bobillot@m4x.org>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Inter-module dependences
Date: Wed, 15 Jun 2005 17:01:30 +0200 (CEST)	[thread overview]
Message-ID: <Pine.LNX.4.58.0506151700180.11575@pc8-102> (raw)
In-Reply-To: <7E5A2BF0-8CE7-4680-9D4B-60732DE9C8C6@m4x.org>

Hello,

> module Make_MyGraph(V : MYVERTEX with type edge = E.t)(E : EDGE with
> type vertex = V.t) = struct
>      module V = V
>      module E = E
>      ...
> end
>
> The compiler found an error on "with type edge = E.t" : "Unbound type
> constructor E.t".

Remember: equality is commutative... You should write:

module Make_MyGraph
  (V: MYVERTEX)
  (E: EDGE with type t = V.edge and type vertex = V.t) =
struct
  ...
end

Hope this helps,
Julien
-- 
mailto:Julien.Signoles@lri.fr ; http://www.lri.fr/~signoles
"In theory, practice and theory are the same,
but in practice they are different" (Larry McVoy)


  reply	other threads:[~2005-06-15 15:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-15 14:12 Damien Bobillot
2005-06-15 15:01 ` Julien Signoles [this message]
2005-06-15 16:18   ` [Caml-list] " Damien Bobillot
     [not found] ` <6b8a9142050615083945b03312@mail.gmail.com>
2005-06-15 16:15   ` [Caml-list] Inter-module dependences [solved] Damien Bobillot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.58.0506151700180.11575@pc8-102 \
    --to=julien.signoles@lri.fr \
    --cc=caml-list@inria.fr \
    --cc=damien.bobillot@m4x.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).