-
Notifications
You must be signed in to change notification settings - Fork 29
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
Working with old versions of GHC in VSCode #16
Comments
I talked to the HLS team about this, and they've made one step towards addressing it: haskell/vscode-haskell#506. |
I think an underlying issue here is that Stackage (and much of the community) has been stuck on GHC 8.10. We should definitely be cautious deprecating old versions, but on the other hand, having a large number downstream projects all work to support extra concurrent versions of each of those projects because and upstream bottleneck, is also somewhat wasteful. Concretely, haskell/vscode-haskell#506 sounds like a good first step, and we should definitely keep 8.10 things working until stackage can advance, but longer term we should try to avoid this "stuck on old compiler" situation in the first place. |
The problem here is that stack has an odd scheme of tying GHC versions to stackage resolvers. If your project builds with GHC-8.10.4, it will in 98% of the cases also build with GHC-8.10.7 (on the same stack resolver). Supporting 8.10.4 at this point in time really makes very little sense. Stack should simply handle this better.
I'd suggest to use cabal instead and then simply use stackage with cabal. There are 3 options for this.
If you want to stick to stack, check out the documentation, which explains how to overwrite GHC version for stack. VSCode extension at this point in time supports installing older toolchains and HLS versions easily:
|
haskell/vscode-haskell#454 is a feature request for better support for working with old versions of haskell-language-server, which is needed for working with older versions of GHC.
This issue is important to me for teaching. For simplicity, I'm using stack for my class this semester and have configured all course projects and autograders to use the same lts. In August, I selected the most recent lts that worked with all of the tools that I wanted to use (hlint, ormolu, vscode) on all platforms. However, in November, haskell-language-server dropped support for GHC-8.10.4 and the auto update meant that vscode stopped working for all of my students. There are workarounds, but I'd like to have a smoother experience.
Following Richard's lead, I'm filing this as an issue in the hope that Haskell Foundation can assist.
The text was updated successfully, but these errors were encountered: