-
Notifications
You must be signed in to change notification settings - Fork 697
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
Support equivalent of stack --no-load
with cabal repl
#7541
Comments
So this one is going to be code changes in one file. Add the option here:
And then you'll need to map that arg to a particular functionality here:
It looks like the current |
can't you just accomplish this by |
That does seem to work, but only after a build:
Seems like it requires an env file to be present in order to work at all (also, why does it load twice? That's odd output). I think folding this into |
I believe such a flag requires a bit more changes than just in
which specifies no targets (due to how configure works), but then eventually:
What we would care about is the list of modules, afaict, and these are added by |
or |
Two questions about that approach @fgaz:
|
There's a confusion here -- the Environment files don't interact with project targets. They just bring deps into scope (through providing a virtual packagedb, in essence). If the test suite has a bigger dep footprint than the lib, then building with tests enabled will create an environment with dependencies in scope to let you load the test suite, the lib, etc. Again there's two solutions presented here that seem just fine for the requested functionality -- either |
I also need the ability to load a subset of my package's modules in |
@enobayram what do you mean "missing all the modules normally generated"? I don't understand your comment fully. |
@gbaz To be specific, I've tried running BTW, I've tried running
Because as long as |
Ok, this convinced me that in the case of code whose generation is triggered by the |
Awesome! I'll readily accept that I don't know enough about the full feature set of |
... namely, not loading all the modules of the library when kicking off
cabal repl
.The text was updated successfully, but these errors were encountered: