-
Notifications
You must be signed in to change notification settings - Fork 17
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
GHC_PACKAGE_PATH not visible from running code #294
Comments
Oh yeah this is what I was talking about when I told you I had an issue with Like so: https://github.com/urbanslug/wai-devel/blob/master/src/Devel.hs#L16 |
Hmm, I don't follow. Why is this a problem for wai-devel? The only ramifications for wai-devel is that the web application wouldn't see |
The issue wasn't that applications were unable to find GHC_PACKAGE_PATH but ide-backend (and consequently wai-devel) failed to properly load sessionConfigFromEnv during recompiles. Wai-devel calls for recompiles from within a function when it notices file changes. Therefore, when wai-devel looked up |
Ahh, yes, that's a good point! Currently sessionConfigFromEnv, won't work properly after one session has run (it clears the GHC_PACKAGE_PATH environment). I hadn't considered that, thanks for bringing it up. |
Haha told you I had your back 😄 |
This is a side effect of #295
Repro:
stack runghc test.hs
, where "test.hs" isExpected: something like `Just "STACK:PACKAGE:DB:PATHS"``
Actual:
Nothing
When this is fixed, a test like the above should be added to make sure it stays fixed
The text was updated successfully, but these errors were encountered: