Say A.ml B.ml C.ml D.ml all need to define some same types
type a = ...
type b = ...
Since I don't want duplicate codes, I put these type definitions in a single file Shared_type.ml and I will do Open Shared_type in A.ml, B.ml ...
Is there a better and elegant way to handle this problem? Also, I feel like there might be something wrong with my underlying design. What are the possible improvements?
-open <module>command during compilation. - nlucaroni