Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions content/ideas/hls-dot-support.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
title: Support `OverloadedRecordDot` in Haskell Language Server
---

[Haskell Language Server][hls] (HLS) has support for many GHC language features,
but new ones (particularly ones that add syntax) sometimes require additional work.
Currently HLS does [not](https://github.com/haskell/haskell-language-server/issues/2732)
have good support for `OverloadedRecordDot`, introduced in GHC 9.2.

The following improvements would bring us up to a reasonable level of support:

- Hover information for fields accessed through dot notation.
- Completions for record fields after a dot.

Once this is completed, more advanced support could be provided:

- Completions for [virtual record fields](https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/exts/hasfield.html#virtual-record-fields).
- Code actions to rewrite non-dot-using field accesses into dot-using field accesses.
- More as inspiration strikes.

[hls]: https://haskell-language-server.readthedocs.io/en/latest/

**Potential Mentors**: Michael Peyton Jones/Pepe Iborra

**Difficulty**: Medium

**Size**: 175 hours