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 support for module hierarchies #13

Closed
oubiwann opened this issue Jul 14, 2020 · 2 comments · Fixed by #38
Closed

Add support for module hierarchies #13

oubiwann opened this issue Jul 14, 2020 · 2 comments · Fixed by #38
Labels
Milestone

Comments

@oubiwann
Copy link
Member

Copied from the 2015 ticket in the old repo: lfe-rebar3/compile#4

Note that this is not true package support, since Erlang/LFE don't have such a concept.

Instead, this is about finding modules in a directory structure and creating a beam file name that is composed of the path elements of the module files parent directories.

This will mean that you can have a path structure like src/a/b/c/d.lfe and, once compiled, there would be a .beam file in ./ebin created with the name a.b.c.d.beam. Calling this module's functions from LFE code would be done in the usual manner: (a.b.c.d:some-func ...). The onus will of course be on the developer to ensure that the module is given the proper name: (defmodule a.b.c.d ...).

@oubiwann
Copy link
Member Author

FYIW, this is exactly what the Clojerl project did.

@oubiwann oubiwann added this to the 0.4.0 milestone Jul 15, 2020
@oubiwann
Copy link
Member Author

Added in #38.

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

Successfully merging a pull request may close this issue.

1 participant