-
Notifications
You must be signed in to change notification settings - Fork 843
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
Error on stack ghci after stack setup in stack new environment #509
Comments
This was fixed by running |
@chrisdone I think what we need is to blacklist loading the local packages even if they're dependencies. Does that sound reasonable? |
I think this extends to the fact that any dependency that is given to GHCi needs to be installed. I wrote in another GHCi issue like this that either we filter out packages that aren't installed, avoiding this error but potentially leading to people being unable to load code, or we run an implicit In the case of local packages, you might want to just use the library version instead of loading the whole thing in. With packages Found related ticket here: #347 (comment) @hmrm I think the adding a hasql dependency is a red herring and just switching environment, so that your package no longer existed (and presumably you have a test suite or executable that depends on the library section of your cabal file), is what causes I'm unsure whether to do the implicit build or just filter out packages. Perhaps if we said "Packages x, y, z are not installed, attempting a build (disable this with |
Or an alternative side of the same coin:
|
Closing in favour of the work-in-progress issue here: #629 Please see that for further progress on this issue. |
I ran stack new to set up a project, then added a dependency to stack.yaml (hasql), and ran stack ghci. This is all on osx with stack-0.1.1.0 downloaded from github.
With verbose logging:
The text was updated successfully, but these errors were encountered: