Cannot compile MLB files that include module entities
MLBasis includes the signature, structure and functor definition as part of basdec. http://mlton.org/MLBasisSyntaxAndSemantics
This MLton feature will be difficult to support in MLKit. The feature can be simulated at the file-level, however.
To implement the feature, a possible path would be to generate "rebinding-code" dynamically and store it in a file in the MLB directory (with a name generated from the hash of its content)... I'll reopen this issue - maybe someone will attack it at some point...
@melsman First, I implemented the parser https://github.com/eldesh/mlkit/commit/893d62fdfe50992922278826297cb6908a045ef8. Is this a reasonable starting point? What should I do next? Where should I make changes to achieve it?