Skip to content

Commit 3da3d41

Browse files
authored
Add idea for OverloadedRecordDot support in HLS
1 parent cc82cc4 commit 3da3d41

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

content/ideas/hls-dot-support.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
title: Support `OverloadedRecordDot` in Haskell Language Server
3+
---
4+
5+
[Haskell Language Server][hls] (HLS) has support for many GHC language features,
6+
but new ones (particularly ones that add syntax) sometimes require additional work.
7+
Currently HLS does [not](https://github.com/haskell/haskell-language-server/issues/2732)
8+
have good support for `OverloadedRecordDot`, introduced in GHC 9.2.
9+
10+
The following improvements would bring us up to a reasonable level of support:
11+
12+
- Hover information for fields accessed through dot notation.
13+
- Completions for record fields after a dot.
14+
15+
Once this is completed, more advanced support could be provided:
16+
17+
- Completions for [virtual record fields](https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/exts/hasfield.html#virtual-record-fields).
18+
- Code actions to rewrite non-dot-using field accesses into dot-using field accesses.
19+
- More as inspiration strikes.
20+
21+
[hls]: https://haskell-language-server.readthedocs.io/en/latest/
22+
23+
**Potential Mentors**: Michael Peyton Jones/Pepe Iborra
24+
25+
**Difficulty**: Medium
26+
27+
**Size**: 175 hours

0 commit comments

Comments
 (0)