-
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
Command to print GHC_PACKAGE_PATH
#4806
Comments
Doens't something like cabal exec -- sh -c 'echo $GHC_PACKAGE_PATH' work? |
This doesn't work on Windows. Well, it works when going through |
@sgraf812 note that (If i read code right) What are you trying to do, maybe there is some other way to solve your X problem, without solving Y (= getting GHC_PACKAGE_PATH)? |
I'm basically trying to solve https://stackoverflow.com/questions/46505007/access-ghc-package-database-in-test-and-benchmark-suite in a relatively portable way. |
@sgraf812 one solution is to use With |
OK, thanks. I'll look into it when I prepare a release for my prototype. |
#3643 is possibly related. |
possibly could be solved by #7500 ? |
Hi, i usually use this trick to print the environment vars set by cabal:
Note i am not using So as there was a suggestion to fix your original issue, motivation to print GHC_PACKAGE_PATH i would close this. |
There should really be a command to just print
GHC_PACKAGE_PATH
as set bycabal exec
, likestack path --ghc-package-path
. Or is there already a way to do this right now?The text was updated successfully, but these errors were encountered: