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?
to your account
I checked stack repl --flag package:flag works on stack v1.1.0, but now it seems that v1.3.2 reject it as invalid flag.
What's an alternative to this?
stack repl --flag package:flag
The text was updated successfully, but these errors were encountered:
Seems to have moved over to stack build?
Then, should I use `stack build --flag PACKAGE:FLAG --exec "ghci Main.hs"?
Is there any reason of moving?
There was a significant refactoring of build arguments a while back (in order to support including build arguments in stack.yaml) and it's possible this was removed from stack repl by accident.
I've just bisected and found the commit 3347bcb. But I can't determine whether it is intended.
Add --flag and --ghc-options to ghci / repl #2986
Hmm, yes, that was an unintended consequence of that change. Most of the things in BuildOptsCLI aren't useful for ghci, but --flag and --ghc-options are, so I've added just those ones back in.
Successfully merging a pull request may close this issue.