-
Notifications
You must be signed in to change notification settings - Fork 415
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
[RFC] Opt-in generation of empty interfaces of modules without .mli
?
#4952
Comments
xref #3768 |
See also the second bullet point in https://discuss.ocaml.org/t/dealing-with-warning-70-missing-mli/8542 where a similar need is expressed. |
I think it would be nice. Perhaps another name |
Yes, this would work for me as well. |
For me, "empty module" means "struct end". |
What about |
The general feature seems fine to me. |
When a module is used solely for their side-effects, one typically wants to add an empty interface file to benefit from the various "unused" warnings, faster incremental compilation, etc.
In our case we have some libraries where we have dozens and dozens of such files. It would be nice if we could have
dune
generate the empty interface files on demand, eg having a field(modules_without_interface ...)
that would telldune
to generate empty interface files for the listed modules (both in libraries and executables).(In case you are curious, we currently patch the compiler to avoid having to actually create all these empty interfaces, but it seems like a task that would fit nicely to Dune.)
Opinions?
The text was updated successfully, but these errors were encountered: