Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: "BOBOT François" <Francois.BOBOT@cea.fr>
To: "francois.pottier@inria.fr" <francois.pottier@inria.fr>,
	"asai@is.ocha.ac.jp" <asai@is.ocha.ac.jp>,
	"caml-list@inria.fr" <caml-list@inria.fr>
Subject: Re: [Caml-list] automatically resolving open?
Date: Wed, 23 Apr 2025 14:38:02 +0000	[thread overview]
Message-ID: <89712cb2aa5393437a5dd65bbd6f49859a21d005.camel@cea.fr> (raw)
In-Reply-To: <b1043d81-1eb2-4175-aa64-308f51e7814c@inria.fr>

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

Le mercredi 23 avril 2025 à 16:32 +0200, Francois Pottier a écrit :
As far as I know there is currently no syntax for absolute
paths in OCaml (every path is relative, and every name can
be shadowed). Maybe we should consider adding such a syntax?


In a dune library, one can require the generation of a root module:

(root_module <module>)

This field instructs Dune to generate a module that will contain module aliases for every library specified in dependencies.
This is useful whenever a library is shadowed by a local module. The library may then still be accessible via this root module.

Best,

--
François Bobot

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

  reply	other threads:[~2025-04-23 14:38 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-23 14:10 Kenichi Asai
2025-04-23 14:32 ` Francois Pottier
2025-04-23 14:38   ` BOBOT François [this message]
2025-04-23 14:45   ` Ivan Gotovchits
2025-04-23 15:33     ` Jeremy Yallop
2025-04-24  4:33   ` Oleg
2025-04-24  6:39 ` Virgile Prevosto
2025-04-24  9:16   ` Ulysse Gérard
2025-04-24 13:06     ` Kenichi Asai
2025-04-24 13:44       ` Ulysse Gérard

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=89712cb2aa5393437a5dd65bbd6f49859a21d005.camel@cea.fr \
    --to=francois.bobot@cea.fr \
    --cc=asai@is.ocha.ac.jp \
    --cc=caml-list@inria.fr \
    --cc=francois.pottier@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