-
Notifications
You must be signed in to change notification settings - Fork 62
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
Allow specifying the GHC to be used for the cabal cradle #148
Comments
I would like to take this on. It seems like a relatively easy task. What do you think? |
That sounds nice! However, designing a nice API doesnt sound as easy. Also, we got to think about #44 of which this could be an extension. In a different approach, we could use cabal-install-parsers in hie/ghcide/hls to find the ghc version automatically. |
Has there been any progress on #44 ? |
I have been implementing a prototype but there is not much to show at the moment. |
@alanz Would it be better if |
both? 😝 |
Not sure if both is really nice. E.g. |
Hmm, I have been mentally using a workflow where the Then when working with a particular GHC version you configure it to use that. And I guess the same effect comes from using But I have had experiences where I am working on a project which I manually configured with one version of GHC (say ghc-8.8.2), and then hie-bios periodically reconfigures it with the "default" ghc, being 8.6.5. So you end up fighting with it. |
Yes, and I think the most intuitive approach would be that hie-bios uses the correctly configured version from |
closing as duplicate in favor of #194 (As there is a technical discussion on how to accomplish and a linked pr) |
A standard idiom is
cabal new-configure --with-compiler=ghc-8.8.2
.Given a
hie.yaml
file is intended to set up the local developer's intentions, we should be able to specify the GHC compiler version with a cabal cradle.As a side-effect, this can help tooling like
hie
and its successors to choose an appropriate version to run.The text was updated successfully, but these errors were encountered: