Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] signature mismatch
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Damien Pous <Damien.Pous@e...>
Subject: Re: [Caml-list] signature mismatch
AA.t and BB.t are two distinct abstract types, so they can't be unified,

you should export the type definitions in AA and BB : 

module AA : A1 with type t = int = struct 
    type t = int
    let test f1 f2 = true
end

module BB : A2 with type t = int = struct
    type t = int
    let toast f1 f2 = false
end

module C = Make (AA) (BB)


damien


-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners