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
invokes all subprojects listed in stack.yaml
#1296
Comments
you seem to want:
|
Precisely. If run as The |
|
listed in my |
Right, the issue is that |
I think it does know the cabal package name. Anecdote tells me at much, at least. |
I discovered this when attempting to
haskell-process-load-file
(C-c C-l) in a subproject. My project has a singlestack.yaml
at top-level, with three subprojects, all with their own.cabal
. Now, in one of those.cabal
I defineddefault-extensions: NoImplicitPrelude
for convenience. To my surprise, when I tried toC-c C-l
in one of the other subprojects, the compiler complained of missing symbols, as ifNoImplicitPrelude
were defined there as well.Checking the
*haskell-process-log*
, I found:which is what one sees when they invoke
stack ghci
manually from the command line in such a project. However,haskell-mode
goes on to just load all the subprojects and their settings, even though I intended to only be working with one of them:Note that none of this happens on the command line if you are explicit about the subproject from the get-go:
stack ghci aur
.This tells me that
haskell-mode
isn't invokingstack ghci
correctly.The text was updated successfully, but these errors were encountered: