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

Proposal for supporting basic dependencies #1620

Closed
janmasrovira opened this issue Nov 14, 2022 · 1 comment · Fixed by #1622
Closed

Proposal for supporting basic dependencies #1620

janmasrovira opened this issue Nov 14, 2022 · 1 comment · Fixed by #1622
Labels
enhancement New feature or request
Milestone

Comments

@janmasrovira
Copy link
Collaborator

Currently Juvix only supports compiling a single package with no dependencies.
The goal of this proposal is to give the user the ability to specify dependencies in the juvix.yaml file.

Example juvix.yaml:

name: my-library
version: 1.0
dependencies:
- ~/juvix-libs/containers
- ~/juvix-libs/extra

Then, the compiler will expect to find a juvix.yaml file in each of the directories specified in dependencies. The modules defined in these packages should be available through regular import statements.
We can discuss what happens when there are name collisions. The Ghc behaviour is that the local package takes precedence over dependencies. If two dependencies have the same module, it is an error.

The idea is that these changes do not affect anything that comes after the scoper. This is not something that will stay true in the long term, but for now it can be ok.

@janmasrovira janmasrovira added enhancement New feature or request pending-review and removed pending-review labels Nov 14, 2022
@jonaprieto jonaprieto added this to the 0.2.8 milestone Nov 22, 2022
@jonaprieto jonaprieto linked a pull request Dec 20, 2022 that will close this issue
@jonaprieto
Copy link
Collaborator

jonaprieto commented Dec 20, 2022

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

Successfully merging a pull request may close this issue.

2 participants