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

Refine PackageImports support in multi-component #45

Merged
merged 1 commit into from
May 23, 2020

Conversation

mpickering
Copy link
Owner

In particular, be more careful about only returning import paths which
could actually be imported into the current module which means excluding
'main' modules.

Fixes #40

In particular, be more careful about only returning import paths which
could actually be imported into the current module which means excluding
'main' modules.

Fixes #40
@mpickering mpickering merged commit ffcdb68 into hls May 23, 2020
wz1000 pushed a commit that referenced this pull request Jun 8, 2020
* Test for #45

* Remove redundant symbols from imports

Fixes #45

* Update src/Development/IDE/LSP/CodeAction.hs

Co-Authored-By: Andreas Herrmann <[email protected]>

* Apply suggestions from code review

Co-Authored-By: Andreas Herrmann <[email protected]>

* Add regex-tdfa extra deps to ghc-lib build

* Fix for GHC 8.4 (error message prints qualified binding)

GHC ticket #14881 changed this to print identifiers unqualified

* dropBindingsFromImportLine: make total

Co-authored-by: Andreas Herrmann <[email protected]>
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.

Fails when a file uses the PackageImports extension
1 participant