We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9de9962 commit 27a6b6eCopy full SHA for 27a6b6e
ghcide/src/Development/IDE/Plugin/CodeAction.hs
@@ -861,9 +861,14 @@ suggestImportDisambiguation df (Just txt) ps@(L _ HsModule {hsmodImports}) diag@
861
HideOthers restImports :
862
[ ToQualified parensed qual
863
| ExistingImp imps <- [modTarget]
864
+#if MIN_GHC_API_VERSION(9,0,0)
865
+ {- HLINT ignore suggestImportDisambiguation "Use nubOrd" -}
866
-- TODO: The use of nub here is slow and maybe wrong for UnhelpfulLocation
867
-- nubOrd can't be used since SrcSpan is intentionally no Ord
868
, L _ qual <- nub $ mapMaybe (ideclAs . unLoc)
869
+#else
870
+ , L _ qual <- nubOrd $ mapMaybe (ideclAs . unLoc)
871
+#endif
872
$ NE.toList imps
873
]
874
++ [ToQualified parensed modName
0 commit comments