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

Show package name and its version while hovering on import statements #3691

Merged
merged 4 commits into from
Aug 7, 2023

Conversation

July541
Copy link
Collaborator

@July541 July541 commented Jul 7, 2023

HieFile doesn't have package information for import statements and we can't get package information from a simple ModuleName in a purity environment.

This pr still uses GHC.findImportedModule to find package info from ghc env, and IO only affect while hovering on import statements, so they are not expensive I think.

Copy link
Collaborator

@fendor fendor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, some nitpicks

ghcide/src/Development/IDE/Spans/AtPoint.hs Show resolved Hide resolved
ghcide/src/Development/IDE/Spans/AtPoint.hs Outdated Show resolved Hide resolved
@July541
Copy link
Collaborator Author

July541 commented Aug 5, 2023

I'll merge this tomorrow if no more review here.

@July541
Copy link
Collaborator Author

July541 commented Aug 6, 2023

Nix build ran out of disks, can someone take a look?

@fendor
Copy link
Collaborator

fendor commented Aug 7, 2023

@July541 Failing nix CI is not blocking, so don't worry about it. It will likely get fixed during the next hackathon :)

Rebasing the PR should be fine, imo.

@July541 July541 merged commit 5436ef0 into haskell:master Aug 7, 2023
44 of 46 checks passed
@fendor fendor mentioned this pull request Aug 8, 2023
19 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants