Skip to content

Inlay hints for types of holes in terms #3228

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

Open
Jashweii opened this issue Sep 27, 2022 · 2 comments
Open

Inlay hints for types of holes in terms #3228

Jashweii opened this issue Sep 27, 2022 · 2 comments
Labels
status: blocked Not actionable, because blocked by upstream/GHC etc. type: enhancement New feature or request

Comments

@Jashweii
Copy link

When you have a _ hole in a haskell program, it would be nice if HLS rendered the expected type
I.e. if you could see ( _x :: Bool) similar to the type signature suggestions below.
image
This only really saves having to hover over the text to read the diagnostic.
image
I probably wouldn't want this in the situation where a type is already attached however (e.g. if I already wrote (_ :: Bool))

@michaelpj
Copy link
Collaborator

This would be a good use for an inlay hint.

@michaelpj michaelpj added status: blocked Not actionable, because blocked by upstream/GHC etc. and removed status: needs triage labels Oct 5, 2022
@michaelpj
Copy link
Collaborator

Needs us to actually support inlay hints at all!

@michaelpj michaelpj changed the title Type signatures for _ holes Inlay hints for hole types May 5, 2024
@michaelpj michaelpj changed the title Inlay hints for hole types Inlay hints for types of holes in terms May 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: blocked Not actionable, because blocked by upstream/GHC etc. type: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants