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] .ml and .mli
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Emmanuel Filiot <emmanuelfiliot@w...>
Subject: [Caml-list] .ml and .mli
Hello all,

I have noticed that we must copy code between .ml and .mli, and I wonder
if there exists a solution for this problem. I explain: 

For example, I have some files such that :

	module type S = sig type t end	

	module A : S with type t = int

	module type S = sig type t end

	module A = struct type t = int let id x = x end

        open Toto

	module B : S = struct .... end

I must copy "module type S = sig...." in both and toto.mli.



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