Skip to content
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

Feautre request: ability to load named signatures from files #8918

Pitometsu opened this issue Sep 5, 2019 · 0 comments


Copy link

commented Sep 5, 2019

Compiler now able to work with ml files which are top-level modules and mli files, which are module type of such module. It would be convenient to have ability to load just module types, because of proper project architecture organisation, which suppose many-to-many module-to-signature relationship. Additionally it would let also implement functor-per-file functionality to reduce lots of boilerplate that appear in case of proper dependency-injection modelling.
And do it in similar way to "virtual module" linking hack, but with functor's runtime facilities.

Not sure, on which side it should be done, already created an issue for dune the build system. But was suggested that it would be better to have such support as part of compiler itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
1 participant
You can’t perform that action at this time.