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

Consider all root paths when suggesting module name change. #2195

Merged
merged 3 commits into from
Sep 16, 2021

Conversation

cdsmith
Copy link
Contributor

@cdsmith cdsmith commented Sep 15, 2021

If there are source root dirs nested inside each other, a module might have
more than one possible name, depending on where it's intended to be imported
from. In this case, a rename should not be suggested unless the module name
doesn't match any possible correct name. When suggesting a name, the shortest
name should be suggested, since that's more likely to be the intended one.

Fixes #1903

If there are source root dirs nested inside each other, a module might have
more than one possible name, depending on where it's intended to be imported
from.  In this case, a rename should not be suggested unless the module name
doesn't match any possible correct name.  When suggesting a name, the shortest
name should be suggested, since that's more likely to be the intended one.

Fixes haskell#1903
@jneira
Copy link
Member

jneira commented Sep 15, 2021

Many thanks for the fix, tests looks great

@jneira jneira added the merge me Label to trigger pull request merge label Sep 15, 2021
@mergify mergify bot merged commit ea032ce into haskell:master Sep 16, 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.

Wrong module name suggestions when using a bios cradle
2 participants