Skip to content

Commit 4a6680d

Browse files
committed
Slight rephrasing
1 parent 0a5ce10 commit 4a6680d

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

content/hls-2.10.0.0/index.md

+7-5
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,16 @@ We expect `2.10.0.0` to be the last HLS release having support for GHC `9.4` ver
3131
We added support for a new LSP feature called `Go to Implementations`.
3232
This LSP feature allows you to jump to the implementation of overloaded functions.
3333

34-
<img src="jump-to-implementations.gif" alt="A simple 'Demo' typeclass illustrating that the 'Go to Implementations request sends the cursor to the instance declaration 'Demo Char'." width=70%>
34+
<img src="jump-to-implementations.gif" alt="A simple 'Demo' typeclass illustrating that the 'Go to Implementations' request sends the cursor to the instance declaration 'Demo Char'." width=70%>
3535

3636
### Inlay Hints
3737

3838
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.
4040
For GSoC 2024, `jetjiinser` added inlay hints for various Haskell constructs where additional information can be provided.
4141

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+
4244
#### Record Wildcards
4345

4446
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://
9698
### GHC Structured Errors
9799

98100
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.
100102

101103
But it also has the useful side effect of allowing us to integrate with [the Haskell Error Index](https://errors.haskell.org/):
102104

103105
<img src="error-index.jpeg" alt="A GHC error message, displaying the error code associated with this particular error message." width=70%>
104106

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).
106108

107109
We want to replace most of these regexes with structured errors.
108110
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
124126
This is a community project, and the HLS team is grateful for every contribution, be it documentation, bug fixes or new features.
125127

126128
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

Comments
 (0)