You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -102,10 +102,18 @@ getDocumentationsTryGhc env linkToHackage names = do
102
102
doc <- lookupDocHtmlForModule env mod
103
103
src <- lookupSrcHtmlForModule env mod
104
104
-- If found, the local files are used as hints for the hackage links, this helps with symbols defined in an internal module but re-exported by another.
105
-
if linkToHackage
106
-
thenreturn ( toHackageDocUriText env mod (takeFileName <$> doc)
107
-
, toHackageSrcUriText env mod (takeFileName <$> src))
108
-
elsepure (toFileUriText doc, toFileUriText src)
105
+
let
106
+
doc_link =case linkTgts.linkDoc of
107
+
LinkToHackage->
108
+
toHackageDocUriText env mod (takeFileName <$> doc)
109
+
LinkToLocal->
110
+
toFileUriText doc
111
+
src_link =case linkTgts.linkSource of
112
+
LinkToHackage->
113
+
toHackageSrcUriText env mod (takeFileName <$> src)
114
+
LinkToLocal->
115
+
toFileUriText src
116
+
pure (doc_link, src_link)
109
117
Nothing->pure (Nothing, Nothing)
110
118
111
119
let docUri = (<>"#"<> selector <> printOutputable name) <$> docFu
0 commit comments