Skip to content
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

Inlay hint for package imports #4485

Open
michaelpj opened this issue Jan 22, 2025 · 0 comments
Open

Inlay hint for package imports #4485

michaelpj opened this issue Jan 22, 2025 · 0 comments
Labels

Comments

@michaelpj
Copy link
Collaborator

Is your enhancement request related to a problem? Please describe.

When looking at an import, it's not obvious at a glance what package it comes from.

Describe the solution you'd like

There is a syntactically valid way to show what packages imports come from: PackageImports! So we can have inlay hints where inserting the inlay hints gives valid Haskell, which is quite nice.

Something like this:

import <hint>"base"</hint> Data.List

Describe alternatives you've considered

We already show packages and versions when hovering on imports, but this makes it even more immediate. It's probably going to be a bit of a love-it-or-hate it thing. And PackageImports is I think "discouraged" so maybe we shouldn't be encouraging people to use it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant