-
Notifications
You must be signed in to change notification settings - Fork 63
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
In a Cabal/Stack cradle, use the direct/default arguments for Setup.hs #208
Comments
Can you realy know that the file you hit, is really the
|
There's definitely two valid approaches here - treat Setup.hs as special because it really is, or treat it normally and get lots of errors. My personal view is we should do something special, because Setup.hs is so pervasive, and we want to reduce bug reports. But one special approach would be simply to not have Ghcide on the command line try to run Setup.hs files which are adjacent to a .cabal file. Or even just those Setup.hs files which have |
Fendor and I realised that this could probably be handled in
This will then need all reimplementing in stack though, although as far as I'm aware the long-ish term plan is to also replicate a show-build-info equivalent in stack, and I believe some work was already carried out in the Bristol Hackathon for this. |
Setup.hs
files should (normally) be runnable with a plain GHC installation,. At least with a simple setup that doesn't depend on any external dependencies, it can use the Cabal library that's wired in with GHC, and the cabal cradle/stack cradle could detect the filepathSetup.hs
and return[]
for the options. This way we would get rid of those bogus "Can't load the module Setup.hs" errors.The text was updated successfully, but these errors were encountered: