It looks like the (wrapped false) setting in pgx/src/dune is causing me some problem when using Pgx in a local project.
Some environment information:
esy-0.6.4
dune-2.5.1
ocaml-4.09.1
Error message:
$ esy dune build @all
Entering directory '/home/richard/code/project'
File "_none_", line 1:
Error: Files /home/richard/.esy/3__________________________________________________________________/i/ocaml-4.9.1000-ffe51dac/lib/ocaml/compiler-libs/ocamlcommon.cmxa
and /home/richard/.esy/3__________________________________________________________________/i/opam__s__pgx-opam__c__1.0-1d851550/lib/pgx/pgx.cmxa
both define a module named Types
It looks like some internal library in the compiler defines and exports a Types module, and so does Pgx. When I checked the Dune documentation, I saw that (wrapped false) is discouraged, but if you do want to use it, they recommend prefixing all the modules in your library manually.
It looks like the
(wrapped false)
setting inpgx/src/dune
is causing me some problem when using Pgx in a local project.Some environment information:
esy-0.6.4
dune-2.5.1
ocaml-4.09.1
Error message:
Diagnosis:
It looks like some internal library in the compiler defines and exports a Types module, and so does Pgx. When I checked the Dune documentation, I saw that
(wrapped false)
is discouraged, but if you do want to use it, they recommend prefixing all the modules in your library manually.