-
Notifications
You must be signed in to change notification settings - Fork 103
Description
As a complete Haskell newbie I used GHCup to install GHC, Stack and HLS on Ubuntu.
I created a new project with Stack, opened it on VS Code and the Haskell Language Server could not start. The reason is that GHCup installs GHC 9.2.8, which is not supported by HLS. Whereas 9.2.7 is. This information is known to GHCup as seen in the TUI.
My suggestion is that if during installation the user chooses to install Haskell Language Server, then GHCup should install a version of GHC compatible with HLS. However, this does not solve the problem. Because stack new
also uses the latest LTS Snapshot. Therefore, it would be necessary to configure the resolver url in ~/.stack/config.yaml
, either automatically (during installation) or manually (by instructing the user how to do it).
I believe that the current behavior makes getting started with Haskell unnecessarily complicated. GHCup should setup a development environment that works out of the box.