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

provide a directive to bundle ocaml modules #21

Open
bobzhang opened this issue Jul 24, 2015 · 1 comment
Open

provide a directive to bundle ocaml modules #21

bobzhang opened this issue Jul 24, 2015 · 1 comment

Comments

@bobzhang
Copy link
Contributor

the motivation is to help distribute software in some cases, so that I only need throw one file, no need build system for some simple cases

bundle(file1,file2,file3)

---->

module rec File1 : sig #include "file1.mli" end = struct #include "file1.ml" end
....


@mjambon
Copy link
Member

mjambon commented Jul 24, 2015

I don't see how to implement this with a macro, even if cppo supported variadic macros, so okay, it makes sense to have this as a built-in.

I don't have much time at the moment. If you want to contribute it's great. Check out https://github.com/mjambon/documents/blob/master/how-to-contribute.md

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

2 participants