There's apparently nothing wrong with that, but the output of
tools/objinfo for calendar.cma shows only the list of modules which
have implementations. For example:
Unit name: Time
Uses unsafe features: no
"Period" is not shown as a separate module (ie. there is no "Unit
name: Period") in the output.
The problem for me is I'd like to determine which modules are provided
by a library, and which modules a library depends upon. I can't tell
that from objinfo because of modules like Period.
I had a look at the implementation, tools/objinfo.ml and the
definition of compilation_unit and library in bytecomp/emitcode.mli,
and I can't really see how even the compiler knows about these types
of modules. Why doesn't it try and fail to link to Period when
PS. Background here: