File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
ghcide/src/Development/IDE/Spans Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,6 @@ import Development.IDE.Core.PositionMapping
34
34
import Development.IDE.Core.RuleTypes
35
35
import Development.IDE.GHC.Compat
36
36
import qualified Development.IDE.GHC.Compat.Util as Util
37
- import Development.IDE.GHC.CoreFile (occNamePrefixes )
38
37
import Development.IDE.GHC.Util (printOutputable )
39
38
import Development.IDE.Spans.Common
40
39
import Development.IDE.Types.Options
@@ -230,9 +229,8 @@ atPoint IdeOptions{} (HAR _ hf _ _ kind) (DKMap dm km) env pos = listToMaybe $ p
230
229
names = M. assocs $ nodeIdentifiers info
231
230
-- Check if a name matches a pattern for a generated Core variable.
232
231
isInternal :: (Identifier , IdentifierDetails a ) -> Bool
233
- isInternal (Right n, _) =
234
- let name = printOutputable n
235
- in any (`T.isPrefixOf` name) occNamePrefixes
232
+ isInternal (Right _, dets) =
233
+ any isEvidenceContext $ identInfo dets
236
234
isInternal (Left _, _) = False
237
235
filteredNames = filter (not . isInternal) names
238
236
types = nodeType info
You can’t perform that action at this time.
0 commit comments