We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8b3232b commit cdabd1eCopy full SHA for cdabd1e
ghcide/src/Development/IDE/Plugin/CodeAction.hs
@@ -869,9 +869,14 @@ suggestImportDisambiguation df (Just txt) ps@(L _ HsModule {hsmodImports}) diag@
869
, mode <-
870
[ ToQualified parensed qual
871
| ExistingImp imps <- [modTarget]
872
+#if MIN_GHC_API_VERSION(9,0,0)
873
+ {- HLINT ignore suggestImportDisambiguation "Use nubOrd" -}
874
-- TODO: The use of nub here is slow and maybe wrong for UnhelpfulLocation
875
-- nubOrd can't be used since SrcSpan is intentionally no Ord
876
, L _ qual <- nub $ mapMaybe (ideclAs . unLoc)
877
+#else
878
+ , L _ qual <- nubOrd $ mapMaybe (ideclAs . unLoc)
879
+#endif
880
$ NE.toList imps
881
]
882
++ [ToQualified parensed modName
0 commit comments