Skip to content

Commit 591d1a8

Browse files
committed
Fix inserting of type in haskell-describe
1 parent 5c817ee commit 591d1a8

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

haskell-mode.el

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1061,22 +1061,23 @@ given a prefix arg."
10611061
(with-current-buffer (help-buffer)
10621062
(if results
10631063
(loop for result in results
1064-
do (insert ident
1064+
do (insert (propertize ident 'face '((:inherit font-lock-type-face
1065+
:underline t)))
10651066
" is defined in "
10661067
(let ((module (cadr (assoc 'module result))))
10671068
(if module
10681069
(concat module " ")
10691070
""))
10701071
(cadr (assoc 'package result))
10711072
"\n\n")
1072-
do (let ((type (cadr (assoc 'type results))))
1073+
do (let ((type (cadr (assoc 'type result))))
10731074
(when type
1074-
(haskell-fontify-as-mode type 'haskell-mode)
1075-
"\n\n"))
1075+
(insert (haskell-fontify-as-mode type 'haskell-mode)
1076+
"\n")))
10761077
do (let ((args (cadr (assoc 'type results))))
10771078
(loop for arg in args
10781079
do (insert arg "\n"))
1079-
"\n")
1080+
(insert "\n"))
10801081
do (insert (cadr (assoc 'documentation result)))
10811082
do (insert "\n\n"))
10821083
(insert "No results for " ident)))))))

0 commit comments

Comments
 (0)