Skip to content

Commit 465646c

Browse files
jneirahasufellmichaelpj
authored
Add ghc deprecation policy to documentation (#2231)
* Create ghc-deprecation.md * Mark 8.8.3 with * Co-authored-by: Julian Ospald <[email protected]> * Add deprecation to index And update description to match the github project one * dont use bullet list for prose * Move ghc support plan * Rephrasing * Tweak support docs (#2232) * Include pepe suggestions Co-Authored-By: @pepeiborra * More precisions Co-authored-by: Julian Ospald <[email protected]> Co-authored-by: Michael Peyton Jones <[email protected]>
1 parent 64374ec commit 465646c

File tree

3 files changed

+75
-2
lines changed

3 files changed

+75
-2
lines changed

docs/index.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
haskell-language-server
22
=======================
33

4-
Integration point for `ghcide <https://github.com/haskell/ghcide>`_ and `haskell-ide-engine <https://github.com/haskell/haskell-ide-engine>`_. One IDE to rule
5-
them all. Read the `project's background <https://neilmitchell.blogspot.com/2020/01/one-haskell-ide-to-rule-them-all.html>`_.
4+
Official haskell ide support via language server (LSP). Successor of `ghcide <https://github.com/haskell/ghcide>`_ and `haskell-ide-engine <https://github.com/haskell/haskell-ide-engine>`_. Read the `project's background <https://neilmitchell.blogspot.com/2020/01/one-haskell-ide-to-rule-them-all.html>`_.
65

76
.. toctree::
87
:maxdepth: 2
98

109
features
1110
installation
11+
supported-versions
1212
configuration
1313
troubleshooting
1414
contributing/index

docs/installation.md

+1
Original file line numberDiff line numberDiff line change
@@ -218,3 +218,4 @@ brew install haskell-language-server
218218
This formula contains HLS binaries compiled with GHC versions available via Homebrew; at the moment those are: 8.6.5, 8.8.4, 8.10.7.
219219

220220
You need to provide your own GHC/Cabal/Stack as required by your project, possibly via Homebrew.
221+

docs/supported-versions.md

+72
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
# Supported GHC versions
2+
3+
## Current GHC version support status
4+
5+
The current support for different GHC versions is given in the following table.
6+
7+
| GHC version | Last supporting HLS version | Deprecation status |
8+
| ----------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------- |
9+
| 9.2.0 | not supported yet | |
10+
| 9.0.1 | [current](https://github.com/haskell/haskell-language-server/releases/latest) ([partial](https://github.com/haskell/haskell-language-server/issues/297)) | |
11+
| 8.10.7 | [current](https://github.com/haskell/haskell-language-server/releases/latest) | |
12+
| 8.10.6 | [current](https://github.com/haskell/haskell-language-server/releases/latest) | will be deprecated after LTS and HLS full support for ghc-9.0 |
13+
| 8.10.5 | [current](https://github.com/haskell/haskell-language-server/releases/latest) | deprecated, will be removed after 1.5.0 |
14+
| 8.10.4 | [1.4.0](https://github.com/haskell/haskell-language-server/releases/tag/1.4.0) | deprecated |
15+
| 8.10.3 | [1.4.0](https://github.com/haskell/haskell-language-server/releases/tag/1.4.0) | deprecated |
16+
| 8.10.2 | [1.4.0](https://github.com/haskell/haskell-language-server/releases/tag/1.4.0) | deprecated |
17+
| 8.10.1 | [0.9.0](https://github.com/haskell/haskell-language-server/releases/tag/0.9.0) | deprecated |
18+
| 8.8.4 | [current](https://github.com/haskell/haskell-language-server/releases/latest) | will be deprecated after LTS and HLS full support for ghc-9.2 |
19+
| 8.8.3 | [current](https://github.com/haskell/haskell-language-server/releases/latest) | deprecated, will be removed after 1.5.0 |
20+
| 8.8.2 | [1.2.0](https://github.com/haskell/haskell-language-server/releases/tag/1.2.0) | deprecated |
21+
| 8.6.5 | [current](https://github.com/haskell/haskell-language-server/releases/latest) | will be deprecated after LTS and HLS full suppot for ghc-9.2 |
22+
| 8.6.4 | [1.4.0](https://github.com/haskell/haskell-language-server/releases/tag/1.4.0) | deprecated |
23+
24+
GHC versions not in the list have never been supported by HLS, or are not planned. LTS stands for [Stackage](https://www.stackage.org/) Long Term Support.
25+
26+
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.
27+
28+
### Using deprecated GHC versions
29+
30+
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).
31+
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.
32+
33+
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.
34+
35+
## GHC version deprecation policy
36+
37+
### Major versions
38+
39+
A major GHC version is a "legacy" version if it is 3 or more major versions behind the GHC version used in the newest Stackage LTS.
40+
41+
HLS will support all non-legacy major versions of GHC.
42+
43+
### Minor versions
44+
45+
For the latest supported major GHC version we will support at least 2 minor versions.
46+
47+
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).
48+
49+
### Announcements
50+
51+
We will warn users about the upcoming deprecation of a GHC version in the notes of the release *prior* to the deprecation itself.
52+
53+
### Why deprecate older versions of GHC?
54+
55+
`haskell-language-server`(HLS) is highly tied to the ghc api.This imposes a high maintenance cost:
56+
57+
- The codebase is littered with conditional logic,
58+
- We own auxiliary packages to support older versions of ghc.
59+
- CI has to cover all the supported versions.
60+
61+
So we need to limit the ghc support to save maintainers and contributors time and reduce CI resources.
62+
63+
At same time we aim to support the right balance of ghc versions to minimize impact to final users.
64+
65+
### What factors do we take into account when deprecating a version?
66+
67+
To establish and apply the policy we take into account:
68+
69+
- Completeness: support includes all plugins and features
70+
- The most recent [stackage](https://www.stackage.org/) LTS snapshot
71+
- The GHC versions used in the most popular [linux distributions](https://repology.org/project/ghc/versions)
72+
- The reliability of different ghc versions on the major operating systems (Linux, Windows, MacOS)

0 commit comments

Comments
 (0)