You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#require "joy";;
The files /home/sudha/.opam/5.1.0/lib/joy/joy.cma
and /home/sudha/.opam/5.1.0/lib/ocaml/compiler-libs/toploop.cmi
disagree over interface Shape
The text was updated successfully, but these errors were encountered:
I ran into this problem while preparing for my presentation. It seems like the solution is to rename Shape to something else (not Primitive, tried that and it doesn't work either). Suggestions?
Think this might have to do with (wrapped false) in dune.
It exposes all modules to the top-level.
Dune doc recommends against it for this exact reason:
(wrapped ) specifies whether the library modules should be available only through the top-level library module, or if they should all be exposed at the top level. The default is true, and it’s highly recommended to keep it this way. Because OCaml top-level modules must all be unique when linking an executables, polluting the top-level namespace will make your library unusable with other libraries if there is a module name clash. This option is only intended for libraries that manually prefix all their modules by the library name and to ease porting of existing projects to Dune.
Trying to load joy on utop throws this error:
The text was updated successfully, but these errors were encountered: