-
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
Apply --ghc-options
in stack ghci even when no packages get loaded
#2199
Comments
I also feel like this could also be improved with documentation somehow, since I didn't grasp that
I know that's a global option though, so I'm not sure if the helpdoc can be tweaked when running |
Yeah, it'd be tough to do conditional option docs like that. I think I'd prefer to address the root cause and just have |
Yeah, to be clear I like your proposed solutions. |
Easy fix! |
I have actually resolved this a different, better way, which is to no longer take all of the CLI build options with |
Via #haskell-stack, @chreekat just ran into a case where
stack ghci --ghc-options ".."
did not behave as expected. Namely, since this was run with the package-less global project,--ghc-options
does not get applied to anything. We have a couple options for dealing with this:--ghc-options
even if there are no local package targets. This is the approach I prefer.--ghc-options
aren't getting applied to anything. This would actually be a good enhancement independently ofghci
.If both of these actions are taken, then we should make sure that
stack ghci --ghc-options
doesen't warn about--ghc-options
not being applied.The text was updated successfully, but these errors were encountered: