* [Caml-list] Trace module load in toplevel?
@ 2014-11-14 22:05 John F. Carr
2014-11-14 22:46 ` John F. Carr
0 siblings, 1 reply; 3+ messages in thread
From: John F. Carr @ 2014-11-14 22:05 UTC (permalink / raw)
To: caml-list
Some modules I'm loading are not visible in the toplevel after #load
of the .cmo (or .cma) files defining them. Is there any way to
1. Have the toplevel tell me what modules are being defined during #load,
2. Dump the list of all top level module bindings,
or
3. Find out what modules the top level would define after loading a file?
I thought ocamlobjinfo would be the answer to (3), but it is not.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Caml-list] Trace module load in toplevel?
2014-11-14 22:05 [Caml-list] Trace module load in toplevel? John F. Carr
@ 2014-11-14 22:46 ` John F. Carr
2014-11-14 22:52 ` Daniel Bünzli
0 siblings, 1 reply; 3+ messages in thread
From: John F. Carr @ 2014-11-14 22:46 UTC (permalink / raw)
To: caml-list
Thanks to Daniel Bünzli for pointing out the problem: the .cmi file
was not visible. I see in the archives this has come up before.
I'm sure I learned it before, but forgot. I had a different
directory structure than usual tonight.
The toplevel should complain if a #load does not define a module.
I will enter an enhancement request on mantis.
>
> Some modules I'm loading are not visible in the toplevel after #load
> of the .cmo (or .cma) files defining them. Is there any way to
>
> 1. Have the toplevel tell me what modules are being defined during #load,
>
> 2. Dump the list of all top level module bindings,
>
> or
>
> 3. Find out what modules the top level would define after loading a file?
>
> I thought ocamlobjinfo would be the answer to (3), but it is not.
>
>
> --
> Caml-list mailing list. Subscription management and archives:
> https://sympa.inria.fr/sympa/arc/caml-list
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Caml-list] Trace module load in toplevel?
2014-11-14 22:46 ` John F. Carr
@ 2014-11-14 22:52 ` Daniel Bünzli
0 siblings, 0 replies; 3+ messages in thread
From: Daniel Bünzli @ 2014-11-14 22:52 UTC (permalink / raw)
To: John F. Carr; +Cc: caml-list
Le vendredi, 14 novembre 2014 à 23:46, John F. Carr a écrit :
> The toplevel should complain if a #load does not define a module.
> I will enter an enhancement request on mantis.
I suspect this is going to be contentious. You may want to #load something that does only side effects but doesn't define any module name (e.g. to install toplevel printers).
Best,
Daniel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-11-14 22:52 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-14 22:05 [Caml-list] Trace module load in toplevel? John F. Carr
2014-11-14 22:46 ` John F. Carr
2014-11-14 22:52 ` Daniel Bünzli
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox