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

Add ocamlfind usage #67

Open
Drup opened this issue Mar 1, 2015 · 3 comments
Open

Add ocamlfind usage #67

Drup opened this issue Mar 1, 2015 · 3 comments

Comments

@Drup
Copy link
Collaborator

Drup commented Mar 1, 2015

It would be nice to have a --package flag to give a package. It would load the dependency recursively.

This is currently possible with ocp-browser --no-opamlib -I ocamlfind query -separator , -r PACKAGE``.
It's very useful for eliom, to avoid the module collision.

@rgrinberg
Copy link
Contributor

Is it possible to reverse lookup a findlib package from a module? Would also be useful.

@Drup
Copy link
Collaborator Author

Drup commented Sep 14, 2015

@rgrinberg No need to reverse lookup, ocp-index's engine posses the information (when loading the .cm*) it's just not propagated all the way down.

@AltGr
Copy link
Member

AltGr commented Sep 15, 2015

I was a bit reluctant to add dependencies to findlib and META files, etc. but as long as we don't require them or findlib to be installed, I think it's fine. Adding a convenience shortcut for -I could indeed be useful.

@rgrinberg, we don't look at META files yet, so that would be difficult in the general case. However, you can get the location of the file that was used for lookup:

% ocp-index print LibIndex "%f"
/home/lg/.opam/4.02.3/lib/ocp-index/lib/libIndex.cmti

so looking up META files in the directory and its parents is definitely possible.

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

3 participants