Skip to content

Is it possible to hide documents of private modules? #8489

Answered by Alizter
toku-sa-n asked this question in Q&A
Discussion options

You must be logged in to vote

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 see Hoge is because you are looking at Foo the top-level module that Dune created (with both modules). To fix this, you can make your own top-level module. Just create a file foo.ml with the following:

module Fuga = Fuga

Read more about it here https://dune.readthedocs.io/en/stable/dune-files.html#library

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@Alizter
Comment options

Answer selected by toku-sa-n
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants