Skip to content

Add idea for OverloadedRecordDot support in HLS #153

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 28, 2022
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