This repository has been archived by the owner on Jan 2, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Smarter logic to remove redundant import bindings (#308)
* Smarter logic to remove redundant import bindings The new code finds the spans to remove using the GHC parse tree, then manually extends them to include commas/spaces. Fixes #299 * Compatibility with GHC 8.4 * Improve comment Co-Authored-By: Andreas Herrmann <42969706+aherrmann-da@users.noreply.github.com> * Use breakOnEnd in unqualify This will handle A.foo as well as A.B.foo Co-authored-by: Andreas Herrmann <42969706+aherrmann-da@users.noreply.github.com>
- Loading branch information
1 parent
db456b0
commit b7208a3
Showing
3 changed files
with
101 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters