X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=ghc%2FGhciTags.hs;h=95bc83e0bb6185f43c89e75d40765e5220b7f8d6;hp=fc5cf00e4b03db6dfa9a1ed7029ce6747f225304;hb=e5c3b478b3cd1707cf122833822f44b2ac09b8e9;hpb=fdf8656855d26105ff36bdd24d41827b05037b91 diff --git a/ghc/GhciTags.hs b/ghc/GhciTags.hs index fc5cf00..95bc83e 100644 --- a/ghc/GhciTags.hs +++ b/ghc/GhciTags.hs @@ -91,13 +91,13 @@ listModuleTags m = do let names = fromMaybe [] $GHC.modInfoTopLevelScope mInfo let localNames = filter ((m==) . nameModule) names mbTyThings <- mapM GHC.lookupName localNames - return $! [ tagInfo unqual exported kind name loc + return $! [ tagInfo unqual exported kind name realLoc | tyThing <- catMaybes mbTyThings , let name = getName tyThing , let exported = GHC.modInfoIsExportedName mInfo name , let kind = tyThing2TagKind tyThing , let loc = srcSpanStart (nameSrcSpan name) - , isGoodSrcLoc loc + , RealSrcLoc realLoc <- [loc] ] where @@ -120,7 +120,7 @@ data TagInfo = TagInfo -- get tag info, for later translation into Vim or Emacs style -tagInfo :: PrintUnqualified -> Bool -> Char -> Name -> SrcLoc -> TagInfo +tagInfo :: PrintUnqualified -> Bool -> Char -> Name -> RealSrcLoc -> TagInfo tagInfo unqual exported kind name loc = TagInfo exported kind (showSDocForUser unqual $ pprOccName (nameOccName name))