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

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Gregoire Sutre <sutre@e...>
Subject: [Caml-list] Help: module names conflicts
Hi,

I am trying to use two ocaml libraries, but I have name conflicts : these
two libraries both have a 'Pretty' module.

I can compile my modules without a problem since I'm not using this Pretty
module.

But the OCaml compiler complains when I try to link against both libraries,
since it finds two times the Pretty module.

A basic but painful fix is to rename the conflicting modules (I then would
have to go in each file of the library where the module is used to rename
it...).

Is there a better way to do this ?

Such as e.g. automatically encapsulate each library in another module (I saw
this idea in a post on module hierarchy, but I don't whether it is
implemented).

Thanks for your help!

Greg.

-- 
Gregoire Sutre                      545W Cory Hall
sutre@eecs.berkeley.edu             University of California
Phone: (510) 642-1638               Berkeley, CA 94720
ICQ# 25170026                       USA
-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr