Re: List of all "buitin" modules in utop, to avoid name collision
"Gabriel Scherer [email protected] [ocaml_beginners]" <[email protected]> Tue, 5 Jul 2016 11:24:11 -0400
| Newsgroups | gmane.comp.lang.ocaml.beginners |
|---|---|
| Message-ID | <CAPFanBFw=Xzr1A+Z2nsigjsWg9=6qmpBMNiUSy2a_Tag-rgXWQ@mail.gmail.com> |
The best way I could think of is ocamlobjinfo $(ocamlfind query utop)/utop.cma which outputs a lot of information on the utop.cma library, include the names of all the modules it contains. I'm a bit surprised, however, as I see no module named Absolute_path in this output, nor can I find any when looking at the source of utop and its dependencies zed and lambda-term. Are you sure the conflict was due to a module in utop? Could you provide a minimal example to reproduce the error you observe? On Tue, Jul 5, 2016 at 11:18 AM, [email protected] [ocaml_beginners] <[email protected]> wrote: > > > A few minutes ago, I noticed that utop has a builtin Absolute_path module. > My homemade OCaml library also had a module with the exact same name, so I > had to rename it to be able to use it inside utop. > Is there a way to get a list of all module names already in use inside > utop, to avoid other name collisions ? > > Any help appreciated. > > > > > > >