-
Notifications
You must be signed in to change notification settings - Fork 841
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
Stack ghci should load intermediate dependencies #584
Comments
Good use-case. This makes sense. If you'd only requested |
Should note for other readers that the workaround is to specify |
Yes, but that quickly becomes annoying if the dependencies grow :) I just |
Of course, it's a workaround, not a solution. ;-) |
A million +1's, that's +1000000 |
Done! I've opened a separate issue for handling the case where these intermediate dependencies are non-local packages: #1441 |
Great! I just installed and it seems to work very well on my first tests. This is going to make my development workflow much smoother. One thing I noticed is that it will still try to build the packages it's loading if they've changed. You can pass |
The reason those are built is to ensure that autogenerated files are updated. Removing this default is covered in #1364 |
Great, thanks! |
I often have scenarios where I'm changing two packages (A and C) and I'd like to load them into ghci together. However, there is a third package (B) in between, so that B depends on C, and A depends on B and C. Now, when I do
stack ghci A C
I will get weird errors:This is because package B is loaded from the installed library, depending on the installed C, whereas A is using C interpreted. So we have two definitions of type
T
which are not compatible.My ideal solution would be if
stack ghci A C
would also interpret (and not use as a package) all the intermediate dependencies between A and C that are available in the project.The text was updated successfully, but these errors were encountered: