-
Notifications
You must be signed in to change notification settings - Fork 842
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
does not include extra-lib-dirs
from yaml configuration
#1656
Comments
Adding the dirs from yaml configuration to BuildInfo should be enough. I think cabal-install overwrites what gets passed through the cli, but I'm not sure as to whether we would want to do the same or just union it with what might be there |
We could plumb this info through, and continue invoking GHCi the way we have been. I'd certainly accept a PR that does that, and might write one myself at some point. However, I think the "correct" way to resolve this stuff is to start pulling this info from the info stored by cabal configure - see #1364 and #970 |
A GHC bug which is potentially related: https://ghc.haskell.org/trac/ghc/ticket/11042 Looks like the fix made it into GHC 8 |
Not sure if this is related, but "stack ghci" also ignores extra-lib-dirs that are modified in a Setup.hs script (though it includes extra-lib-dirs that are written directly in the cabal file). |
+ Refactor unwieldy many-arg function
Fixed! Tested on https://github.com/expipiplus1/simple-shared , and what didn't work before works now! |
@mgsloan, |
@leohaskell Relative paths can be used now - #2830 - though this isn't yet in a released version of stack |
@mgsloan, great! Thank you for your efforts! |
and also probably applies to
extra-include-dirs
assuming that the library and headers exists at the locations listed in the yaml configuration
Expected:
Actual:
stack.yaml
The text was updated successfully, but these errors were encountered: