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

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: David Brown <caml-list@d...>
Subject: Re: [Caml-list] Modules
On Fri, May 09, 2003 at 09:45:32PM +0200, Christophe Poucet wrote:

> They look sort of like this:
> (* TigerSymbol.mli file *)
> module type TIGERSYMBOL = 
> sig
> ...
> end
> 
> (* TigerSymbol.ml file *)
> module TigerSymbol : TIGERSYMBOL =
> struct
> ...
> end

The construct you specified above is _implicitly_ wrapped around the
contents of these files.  The files themselves should just contain the
parts given by ...

Also, the filename for TigerSymbol will need to be 'tigerSymbol.mli' and
'tigerSymbol.ml'.  The first letter needs to be made lowercase.

Hope that helps.

Dave Brown

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