Julien Moutinho a écrit : > On Thu, Oct 18, 2007 at 02:16:50AM +0200, Felix Dorner wrote: > >> In my implementation file module.ml I define: type aType = A | B >> How I now need to expose this Type and its constructors to the interface >> module.mli, because some of the functions declared in the interface take a >> parameter of type "aType". How can I do this? >> You may also choose not to have a .mli file at all. This is equivalent to using the result of ocaml -i as mli file. An mli file is needed if you want to make your type abstract or if you want to hide some functions. Cheers, -- Christophe Raffalli Universite de Savoie Batiment Le Chablais, bureau 21 73376 Le Bourget-du-Lac Cedex tel: (33) 4 79 75 81 03 fax: (33) 4 79 75 87 42 mail: Christophe.Raffalli@univ-savoie.fr www: http://www.lama.univ-savoie.fr/~RAFFALLI --------------------------------------------- IMPORTANT: this mail is signed using PGP/MIME At least Enigmail/Mozilla, mutt or evolution can check this signature. The public key is stored on www.keyserver.net ---------------------------------------------