-
Notifications
You must be signed in to change notification settings - Fork 29
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
Drop 'private' on demand? #13
Comments
I'm confused. Can you show me a minimal example with your current code, and with your desired code? Also, ppx_import adds a manifest type so I think if ppx_import did what you want it'd not typecheck. |
sure, let's say I have a module named I had expected this to be possible, as it seems to be pretty close to what test_self_import does? |
Ohh you mean importing from own mli! There should just be a branch that if you import from your own mli then |
that would be awesome :) |
I have no plans to implement this but you are welcome to submit a PR. Such a change should be fairly trivial. |
Hi,
I'd like to redeclare many of my currently abstract types as private so their contents are visible to ocamldebug. If ppx_import allowed me to change an imported type's visibility from private to public on demand, I could do that with a lot less redundant typing. Do you think such a feature could be added (maybe by resurrecting the commit prior to #8 and exposing it via another directive such as %import_dropping_private)? Or maybe there already is a way to achieve that with the current version of ppx_import which I am not aware of?
thanks,
Sebastian
The text was updated successfully, but these errors were encountered: