-
Notifications
You must be signed in to change notification settings - Fork 25
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
Am I limited to working on a single package? #92
Comments
Perhaps I can do this without a project now that haskell/cabal#5526 landed two days ago, fixing haskell/cabal#4206? |
@philderbeast that's a good question, and one that doesn't have an answer yet. Can you give an example project structure, and the commands you'd imagine typing? For instance it's unclear what |
See the tests I've added to branch repro/multi-pkg-92 where I've got one app and two libs, one dependent on the other, in the same package. The command line when squeezing multiple libs into the one package would be unchanged;
If multiple instances of the
With an explicit project like with cabal's
|
Question: does hpack allow multiple master...BlockScope:repro/multi-pkg-92#diff-b70f96cd6dacdfa375dc26b966109277R3 I'll play a bit with https://github.com/BlockScope/snack/tree/repro/multi-pkg-92 and see what I come up with. I like the idea of being able to specify |
More broadly, it'd be nice to be able to specify Snack packages as inputs to other Snack packages in such a way that if I change a the module in My biggest pain point with Nix+Haskell is working on an executable with a deep library stack: if I change something way upstream, then every intermediate package gets recompiled from scratch, even the unaffected modules. |
@siddharthist this is actually what happens in Snack! See this reddit conversation. I planned on writing up on Snack's design, I'll bump it in my todo list. |
I have a mono-repo that has many unpublished packages, some of which depend on others.
If I use
--package-yaml
or--package-nix
without touching--snack-nix
then am I limited to working on a single package? How in snack would I have a project that includes many packages similar to the way with cabal there is a rootcabal.project
that can reference multiple packages.The text was updated successfully, but these errors were encountered: