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

option to generate interface files #540

Open
gildor478 opened this issue Oct 24, 2020 · 0 comments
Open

option to generate interface files #540

gildor478 opened this issue Oct 24, 2020 · 0 comments

Comments

@gildor478
Copy link
Member

This feature request has been migrated from artifact #1299 on forge.ocamlcore.org. It was assigned to user102.

user214 posted on 2013-07-27 18:53:22:

ocamlc has the nice option -i to output all defined names (with their inferred types or their definitions) when compiling an implementation (.ml file). This can be used as template for the .mli file or simply to check the resulting types are sane.

It would be nice if oasis had an option to run ocamlc -i for a) every *.ml file or b) only *.ml files without *.mli.

A further step would be to use those file to compile .cmi files only when they changed. This would allow the cmi file to remain unchanged when the ml file changed but did not change its interface.

user144 replied on 2015-07-04 08:37:54:

I do not see the point of this. If the .mli file are to be distributed, they should also be documented, so ocamlc -i would only be a starting point. If they are for internal purposes only (not sure why), a devel build target in a Makefile would suffice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant