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