You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/hls-2.10.0.0/index.md
+6-4
Original file line number
Diff line number
Diff line change
@@ -36,9 +36,11 @@ This LSP feature allows you to jump to the implementation of overloaded function
36
36
### Inlay Hints
37
37
38
38
Inlay hints allow you to display additional information within a line of code.
39
-
This can be an elegant alternative to code lenses, which can be a bit more invasive in the editor.
39
+
These can be an elegant alternative to code lenses, which display additional information as a separate line above the actual line of code.
40
40
For GSoC 2024, `jetjiinser` added inlay hints for various Haskell constructs where additional information can be provided.
41
41
42
+
Inlay hints are enabled by default in editors that support them, and some plugins, like the `explicit-imports` plugin, have been updated to use the new inlay hints instead of code lenses if possible.
43
+
42
44
#### Record Wildcards
43
45
44
46
When [`RecordWildCards`](https://downloads.haskell.org/ghc/latest/docs/users_guide/exts/record_wildcards.html#extension-RecordWildCards) are enabled, it can be tricky to tell which functions are brought into scope.
@@ -96,13 +98,13 @@ This is mostly a proof of concept, we expand on this idea in [PR #4428](https://
96
98
### GHC Structured Errors
97
99
98
100
This release is also the first release which uses GHC's structured errors infrastructure.
99
-
You might not notice this at first as an end-user, as it is a rather technical detail mainly concerned with refactoring internals of HLS to provide many of its features based on structured diagnostics, improving accuracy and maintainability of HLS.
101
+
You might not notice this at first as an end-user, as it is a rather technical detail mainly concerned with refactoring internals of HLS to provide many of its features based on structured error messages, improving accuracy and maintainability of HLS.
100
102
101
103
But it also has the useful side effect of allowing us to integrate with [the Haskell Error Index](https://errors.haskell.org/):
102
104
103
105
<imgsrc="error-index.jpeg"alt="A GHC error message, displaying the error code associated with this particular error message."width=70%>
104
106
105
-
For anyone wondering how HLS is providing code actions and other LSP features without structured diagnostics... the answer is [lots of GHC version dependent regexes](https://github.com/haskell/haskell-language-server/blob/master/plugins/hls-refactor-plugin/src/Development/IDE/Plugin/CodeAction.hs#L975).
107
+
For anyone wondering how HLS is providing code actions and other LSP features without structured error messages... the answer is [lots of GHC version dependent regexes](https://github.com/haskell/haskell-language-server/blob/master/plugins/hls-refactor-plugin/src/Development/IDE/Plugin/CodeAction.hs#L975).
106
108
107
109
We want to replace most of these regexes with structured errors.
108
110
Do you want to help? Pick an HLS plugin and hack away!
@@ -124,4 +126,4 @@ We want to thank our countless contributors from the community and our Google Su
124
126
This is a community project, and the HLS team is grateful for every contribution, be it documentation, bug fixes or new features.
125
127
126
128
Finally, a reminder that you can donate to the development of HLS via [OpenCollective](https://opencollective.com/haskell-language-server).
127
-
The OpenCollective money pays for tedious, but important maintenance work and, sometimes, development of new features.
129
+
The OpenCollective money pays for tedious, but important maintenance work and, sometimes, for getting new features over the finish line.
0 commit comments