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

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: efiliot@e...
Subject: [Caml-list] module type and record
hello,
I need to declare a record type in a field like :

module A : ( MY_TYPE with type t = { label1 : int ; label2 : string } ) =
struct
....
end

but the compiler seems to refuse this declaration.

Could you give me a solution for this problem ?

Thank You,

Emmanuel Filiot

-------------------
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