Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
optimize ambiguity import suggestions (#1669)
- Loading branch information
Showing
7 changed files
with
93 additions
and
32 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{-# LANGUAGE DuplicateRecordFields #-} | ||
|
||
module FVec (RecA(..), RecB(..)) where | ||
|
||
data Vec a | ||
|
||
newtype RecA a = RecA { fromList :: [a] -> Vec a } | ||
|
||
newtype RecB a = RecB { fromList :: [a] -> Vec a } |
10 changes: 10 additions & 0 deletions
10
ghcide/test/data/hiding/HideQualifyDuplicateRecordFields.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,10 @@ | ||
module HideQualifyDuplicateRecordFields where | ||
|
||
import AVec | ||
import BVec | ||
import CVec | ||
import DVec | ||
import EVec | ||
import FVec | ||
|
||
theFun = AVec.fromList |
10 changes: 10 additions & 0 deletions
10
ghcide/test/data/hiding/HideQualifyDuplicateRecordFields.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 HideQualifyDuplicateRecordFields where | ||
|
||
import AVec | ||
import BVec | ||
import CVec | ||
import DVec | ||
import EVec | ||
import FVec | ||
|
||
theFun = fromList |
5 changes: 5 additions & 0 deletions
5
ghcide/test/data/hiding/HideQualifyDuplicateRecordFieldsSelf.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,5 @@ | ||
module HideQualifyDuplicateRecordFieldsSelf where | ||
|
||
import FVec | ||
|
||
x = fromList |
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