I’ve been developing on OCaml projects for some time now, however, it is my first time writing an OCaml library using dune.
My main issue is that I want my library to expose several modules (in particular, some modules contains functions / functors that can be used by the users, and other modules contains types (and related functions) that should be used to construct parameters for said functions / functors.
What is the best practice for doing this ?
The solution I use is simply to import these modules in the main library file, which will contain
module FirstExposedMod = FirstExposedMod module SecondExposedMod = SecondExposedMod module ThirdExposedMod = ThirdExposedMod module FourthExposedMod = FourthExposedMod
Is it the best way of doing things ? I haven’t been able to find informations on that anywhere.
Thank you very much !