File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
ghcide/src/Development/IDE/Spans Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -225,10 +225,17 @@ atPoint IdeOptions{} (HAR _ hf _ _ kind) (DKMap dm km) env pos = listToMaybe $ p
225225 wrapHaskell x = " \n ```haskell\n " <> x<> " \n ```\n "
226226 info = nodeInfoH kind ast
227227 names = M. assocs $ nodeIdentifiers info
228+ isInternal :: (Identifier , IdentifierDetails a ) -> Bool
229+ isInternal (Right n, _) =
230+ let name = printOutputable n
231+ prefix = T. take 2 name
232+ in elem prefix [" $d" , " $c" ]
233+ isInternal (Left _, _) = False
234+ filteredNames = filter (not . isInternal) names
228235 types = nodeType info
229236
230237 prettyNames :: [T. Text ]
231- prettyNames = map prettyName names
238+ prettyNames = map prettyName filteredNames
232239 prettyName (Right n, dets) = T. unlines $
233240 wrapHaskell (printOutputable n <> maybe " " (" :: " <> ) ((prettyType <$> identType dets) <|> maybeKind))
234241 : maybeToList (pretty (definedAt n) (prettyPackageName n))
You can’t perform that action at this time.
0 commit comments