[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Julien Signoles <Julien.Signoles@l...> |
| Subject: | Re: [Caml-list] Inter-module dependences |
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)