-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Libraries in Dune are wrapped by default meaning that Dune will generate a
Read more about it here https://dune.readthedocs.io/en/stable/dune-files.html#library |
Beta Was this translation helpful? Give feedback.
-
@jonludlam what do you think about this one? |
Beta Was this translation helpful? Give feedback.
Libraries in Dune are wrapped by default meaning that Dune will generate a
foo.ml
file which exports all the modules of the library. This is called the top-level module. The reason you seeHoge
is because you are looking atFoo
the top-level module that Dune created (with both modules). To fix this, you can make your own top-level module. Just create a filefoo.ml
with the following:Read more about it here https://dune.readthedocs.io/en/stable/dune-files.html#library