Two questions:
- How can I find what are the modules that are pre-loaded in my ocaml session?
- Given a module, how can I list its contents?
In SML, a standard "trick" was to define a dummy module and open in it a module the contents of which I wanted to inspect. The signature of the dummy module would then list the contents of the module in SML. This does not work in ocaml.
Found this: To see the packages pre-loaded, use #use "topfind";; to use the topfind package, and the #list;; will list the pre-loaded packages!
#listwill not show all preloaded modules, but will show packages that can be loaded. - ivg