Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: K <cq.personal@gmail.com>
To: Caml Mailinglist <caml-list@inria.fr>
Subject: [Caml-list] module dependency question
Date: Thu, 16 Jul 2026 14:53:20 +0000	[thread overview]
Message-ID: <CACTzTFBSH2pE4oyM6hetVZ0QqmxunGri5EGfAwquBD8NaEkXtg@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 613 bytes --]

I have been labouring under the mis-apprehension that the global Path.t's
within the typed AST are sufficient to identify all dependencies of a
module.
But I think the following case illustrates differently:

consider a toplevel definition:
let v = M.f ()
where M.f: unit -> N.t

the dependency on M is clear but because the value v is not inspected in
any way, the type N.t is not a dependency unless going, say, beyond the
type AST description and iterating over the term's exp_type: typexpr
looking for global Path.t's.

Is this reasonable or is there a better way of going about identifying ALL
dependencies?

[-- Attachment #2: Type: text/html, Size: 765 bytes --]

             reply	other threads:[~2026-07-16 13:03 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-16 14:53 K [this message]
2026-07-16 13:07 ` Florian Angeletti
2026-07-16 15:19   ` K
2026-07-16 13:34     ` Florian Angeletti

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CACTzTFBSH2pE4oyM6hetVZ0QqmxunGri5EGfAwquBD8NaEkXtg@mail.gmail.com \
    --to=cq.personal@gmail.com \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox