-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot compile MLB files that include module entities #74
Comments
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 eldesh@893d62f. |
Since MLKit doesn't support module-level entities (melsman/mlkit#74), we attempt to automatically generate `bind.sml` files. However, SML doesn't allow `functor` rebinding: `functor Foo = Foo`.
MLBasis includes the signature, structure and functor definition as part of basdec.
http://mlton.org/MLBasisSyntaxAndSemantics
The text was updated successfully, but these errors were encountered: