-
Notifications
You must be signed in to change notification settings - Fork 89
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
Fay typechecking does not work from a sandbox #174
Comments
Indeed, we're aware of this problem but up until now it seemed I was the only one who installed just with cabal-dev to be bothered by it (I tend to use |
This isn't affecting me in any major way, I just thought if I'm already working on a related solution I may as well file the issue. I think I'll open an issue with cabal-dev to set the HASKELL_PACKAGE_SANDBOX environment variable as well. |
Whoa, that was fast. Thanks! |
@chrisdone GHC 7.6.1 deprecated the use of I use: #if __GLASGOW_HASKELL__ >= 706
ghcPackageDbFlag = "-package-db"
#else
ghcPackageDbFlag = "-package-conf"
#endif |
Just to be pedantic, this may not be sufficient for Fay. Fay is calling GHC over the command line, which might be a different version of GHC it was compiled with. I think the technically correct solution would be to parse the output of |
Ah, ok. In that case I would not use that code. With |
@snoyberg Aiming for correctness is not pedantic :) |
Thanks, @sol. |
@chrisdone The reason that I have no idea what is appropriate for So parsing |
Pull request #175 checks the GHC version from the command line. |
In order to reproduce, unregister
fay
from your user package database and install viacabal-dev install fay
. Then trying to compile anything with fay results in:I ran into a similar issue with doctest; the solution we agreed on in sol/doctest#39 was to pass in an extra HASKELL_PACKAGE_SANDBOX environment variable. We could theoretically use GHC_PACKAGE_PATH instead, but that would cause issues with cabal-install.
The text was updated successfully, but these errors were encountered: