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

Not suggest exported imports #2329

Merged
merged 3 commits into from Nov 6, 2021
Merged

Conversation

yoshitsugu
Copy link
Contributor

@yoshitsugu yoshitsugu commented Nov 5, 2021

I attempted to fix #2079
I'm not familiar with GHC AST kind things. I'd be happy to get some advice if anyone has more smart way to implement this.

@@ -32,3 +32,16 @@ library
default-extensions:
DataKinds
TypeOperators

test-suite tests
Copy link
Member

Choose a reason for hiding this comment

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

Wow the plugin had no test suite??? Many thanks for adding it, a great contribution in its own

Copy link
Member

Choose a reason for hiding this comment

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

It would be great to add it to the github workflow to run them in ci, adding an entry like

- if: matrix.test
name: Test hls-refine-imports-plugin test suite
run: cabal test hls-refine-imports-plugin --test-options="-j1 --rerun-update" || cabal test hls-refine-imports-plugin --test-options="-j1 --rerun" || LSP_TEST_LOG_COLOR=0 LSP_TEST_LOG_MESSAGES=true LSP_TEST_LOG_STDERR=true cabal test hls-refine-imports-plugin --test-options="-j1 --rerun"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK. I'll fix.

@jneira
Copy link
Member

jneira commented Nov 5, 2021

Many thanks for your new contribution!

Copy link
Collaborator

@pepeiborra pepeiborra left a comment

Choose a reason for hiding this comment

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

Thanks for improving this plugin and adding tests!

Co-authored-by: Michael Peyton Jones <me@michaelpj.com>
Copy link
Member

@jneira jneira left a comment

Choose a reason for hiding this comment

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

many thanks!

@jneira jneira added the merge me Label to trigger pull request merge label Nov 6, 2021
@mergify mergify bot merged commit 9fa6abe into haskell:master Nov 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge me Label to trigger pull request merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Don't suggest making imports explicit when the module is exported
4 participants