Hi,

I'm an OCaml beginner and was wondering about how to reference modules
generated from functors.  I'm using Map.Make(String) to generate a
module called StringMap, so in my stringMap.ml file I have

module StringMap = Map.Make(String);;

and ocamlbuild was nice enough to generate stringMap.mli with the
StringMap signature.  The problem now, since I have module StringMap
inside a file named stringMap, is that to access its methods I have to
call something like StringMap.StringMap.add.  Is there a way that I
can organize my code such that I only need to call StringMap.add, or
is it best just to use a short module name like S inside the stringMap
files?

Thanks,
Dan

-- 
You received this message because you are subscribed to the Google Groups 
"ocaml-developer" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/ocaml-developer?hl=en
For other OCaml forums, see http://caml.inria.fr/resources/forums.en.html

Reply via email to