Skip to content
This repository was archived by the owner on Oct 7, 2020. It is now read-only.

Commit 919b046

Browse files
committed
Render completion doc markdown
1 parent d679eb5 commit 919b046

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Haskell/Ide/Engine/Plugin/Hoogle.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ infoCmd' expr = do
103103
if null res then
104104
Left NoResults
105105
else
106-
return $ T.pack $ targetInfo $ head res
106+
return $ renderTarget $ head res
107107

108108
-- | Command to get the prettified documentation of an hoogle identifier.
109109
-- Identifier should be understandable for hoogle.
@@ -128,7 +128,7 @@ infoCmdFancyRender expr = do
128128
renderTarget :: Target -> T.Text
129129
-- renderTarget t = T.intercalate "\n\n" $
130130
renderTarget t = T.intercalate "\n" $
131-
["```haskell\n" <> unHTML (T.pack $ targetItem t) <> "```"]
131+
["```haskell\n" <> unHTML (T.pack $ targetItem t) <> "\n```"]
132132
++ [T.pack $ unwords mdl | not $ null mdl]
133133
++ [renderDocs $ targetDocs t]
134134
++ [T.pack $ curry annotate "More info" $ targetURL t]

0 commit comments

Comments
 (0)