I have a project using OCaml that successfully compiles by using the dune
However, I want to know the signature of some file. The “ocamlc -i file.ml” works for let’s say small files. However, if the file has some dependency as is the case in this project then the answer to the question “Ocamlc -i error:Unbound module, how to fix it?” mentions the cmi files as needed to be compiled.
That is fine as things go but how could is use dune (which has access to all the cmi files) in order to get this signature file? The dune documentation does to even has “signature” in its 80 page pdf files.