A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://haskell-language-server.readthedocs.io/en/latest/support/ghc-version-support.html below:

Website Navigation


GHC version support — haskell-language-server 2.11.0.0 documentation

GHC version support Current GHC version support status

The current support for different GHC versions is given in the following table.

Last supporting HLS version:

Support status (see the support policy below for more details):

GHC versions not in the list have never been supported by HLS. LTS stands for Stackage Long Term Support.

The policy for when we deprecate support for versions of GHC is given below. The table reflects that, but we may decide to deviate from it for good reasons.

Using deprecated GHC versions

Users who want to use a GHC version which is not supported by the latest HLS can still use older versions of HLS (consult the version support table above to identify the appropriate HLS version). In the future, we may extend the existing discovery mechanisms (haskell-language-server-wrapper, automatic download in vscode extension) to find and download older HLS binaries in this case.

Users of a deprecated minor version (where the major version is still supported) can try building the latest HLS from source, which will likely still work, since the GHC API tends to remain compatible across minor versions.

Using GHC versions not yet supported in a HLS release

Some users may wish to use a version of GHC that is not yet supported by a released version of HLS. In particular, this means that pre-built binaries will not be available for that GHC version.

The easiest thing to do in this case is to build HLS from source yourself. This can be done easily with ghcup, see the examples for ghcup compile on the installation page.

Generally, if a version of GHC is supported by HLS on master or is a new minor version of a GHC version that is supported by HLS on master, then compiling from source is likely to work. Major versions of GHC which are not supported by HLS on master are extremely unlikely to work.

GHC version deprecation policy Base policy

This is the static part of the policy that can be checked by a machine.

Major versions

HLS will support major versions of GHC until they are older than both

  1. The major version of GHC used in the current Stackage LTS; and

  2. The major version of GHC recommended by GHCup

For example, if

  1. Stackage LTS uses GHC 9.2; and

  2. GHCUp recommends GHC 9.4

then HLS will support back to GHC 9.2.

Minor versions

For the latest supported major GHC version we will support at least 2 minor versions.

For the rest of the supported major GHC versions, we will support at least the latest minor version in Stackage LTS (so 1 minor version).

Extended policy

This is the part of the policy that needs evaluation by a human and possibly followed by a discussion.

Ecosystem factors

To establish and apply the policy we take the following ecosystem factors into account:

Supporting a GHC version beyond normal deprecation time

In cases where the base policy demands a deprecation, but ecosystem factors suggest that it’s still widely used (e.g. last Haskell Survey results), the deprecation should be suspended for the next release and the situation be re-evaluated for the release after that.

When we decide to keep on an old version, we should track it as follows:

  1. open a ticket on HLS issue tracker wrt discussing to deprecate said GHC version

  2. discuss whether ecosystem factors changed

  3. if dropping is still undesired, but maintenance burden is also high, then set out a call-for-help and contact HF for additional funding to support this GHC version

  4. if no help or funding was received within 2 releases (say, e.g. 3-6 months), then drop the version regardless

Why deprecate older versions of GHC?

haskell-language-server(HLS) is highly tied to the GHC API. This imposes a high maintenance cost:

So we need to limit the GHC support to save maintainers and contributors time and reduce CI resources.

At same time we aim to support the right balance of GHC versions to minimize the impact on users.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4