Mutually recursive module and functor in OCaml
问题 I have defined an interface A to be used by several functors, and notably by MyFunctor : module type A = sig val basic_func: ... val complex_func: ... end module MyFunctor : functor (SomeA : A) -> struct ... let complex_impl params = ... (* Here I call 'basic_func' from SomeA *) SomeA.basic_func ... ... end Now I want to define a module B with implements the interface A . In particular, the implementation of complex_func should use basic_func through complex_impl in MyFunctor : module B =