Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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

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

module C = Make (AA) (BB)


To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: