Skip to content

Commit 3eea015

Browse files
committed
showGhc -> showNameWithoutUniques
1 parent f3b7eae commit 3eea015

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

ghcide/src/Development/IDE/Spans/Common.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ import Development.IDE.GHC.Util
3939
type DocMap = NameEnv SpanDoc
4040
type KindMap = NameEnv TyThing
4141

42-
4342
showGhc :: Outputable a => a -> T.Text
4443
showGhc = showSD . ppr
4544

ghcide/src/Development/IDE/Spans/Documentation.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ getDocumentationsTryGhc env mod sources names = do
9999
src <- toFileUriText $ lookupSrcHtmlForModule df mod
100100
return (doc, src)
101101
Nothing -> pure (Nothing, Nothing)
102-
let docUri = (<> "#" <> selector <> showGhc name) <$> docFu
103-
srcUri = (<> "#" <> showGhc name) <$> srcFu
102+
let docUri = (<> "#" <> selector <> showNameWithoutUniques name) <$> docFu
103+
srcUri = (<> "#" <> showNameWithoutUniques name) <$> srcFu
104104
selector
105105
| isValName name = "v:"
106106
| otherwise = "t:"

0 commit comments

Comments
 (0)