-
-
Notifications
You must be signed in to change notification settings - Fork 355
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change refine imports behaviour for qualified imports (#3806)
- Loading branch information
1 parent
6388882
commit f14e5a6
Showing
7 changed files
with
81 additions
and
33 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
11 changes: 11 additions & 0 deletions
11
plugins/hls-explicit-imports-plugin/test/testdata/RefineQualified.expected.hs
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
module Main where | ||
|
||
import qualified RefineB as RA | ||
import qualified RefineC as RA | ||
import RefineD | ||
import Data.List (intercalate) | ||
|
||
main :: IO () | ||
main = putStrLn | ||
$ "hello " | ||
<> intercalate ", " [RA.b1, RA.c1, e2] |
10 changes: 10 additions & 0 deletions
10
plugins/hls-explicit-imports-plugin/test/testdata/RefineQualified.hs
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
module Main where | ||
|
||
import qualified RefineA as RA | ||
import RefineD | ||
import Data.List (intercalate) | ||
|
||
main :: IO () | ||
main = putStrLn | ||
$ "hello " | ||
<> intercalate ", " [RA.b1, RA.c1, e2] |
11 changes: 11 additions & 0 deletions
11
plugins/hls-explicit-imports-plugin/test/testdata/RefineQualifiedExplicit.expected.hs
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
module Main where | ||
|
||
import qualified RefineB as RA ( b1 ) | ||
import qualified RefineC as RA ( c1 ) | ||
import RefineD | ||
import Data.List (intercalate) | ||
|
||
main :: IO () | ||
main = putStrLn | ||
$ "hello " | ||
<> intercalate ", " [RA.b1, RA.c1, e2] |
10 changes: 10 additions & 0 deletions
10
plugins/hls-explicit-imports-plugin/test/testdata/RefineQualifiedExplicit.hs
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
module Main where | ||
|
||
import qualified RefineA as RA (b1, c1) | ||
import RefineD | ||
import Data.List (intercalate) | ||
|
||
main :: IO () | ||
main = putStrLn | ||
$ "hello " | ||
<> intercalate ", " [RA.b1, RA.c1, e2] |
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