Skip to content

Commit

Permalink
Fix inserting of type in haskell-describe
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdone committed Jun 21, 2014
1 parent 5c817ee commit 591d1a8
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions haskell-mode.el
Expand Up @@ -1061,22 +1061,23 @@ given a prefix arg."
(with-current-buffer (help-buffer)
(if results
(loop for result in results
do (insert ident
do (insert (propertize ident 'face '((:inherit font-lock-type-face
:underline t)))
" is defined in "
(let ((module (cadr (assoc 'module result))))
(if module
(concat module " ")
""))
(cadr (assoc 'package result))
"\n\n")
do (let ((type (cadr (assoc 'type results))))
do (let ((type (cadr (assoc 'type result))))
(when type
(haskell-fontify-as-mode type 'haskell-mode)
"\n\n"))
(insert (haskell-fontify-as-mode type 'haskell-mode)
"\n")))
do (let ((args (cadr (assoc 'type results))))
(loop for arg in args
do (insert arg "\n"))
"\n")
(insert "\n"))
do (insert (cadr (assoc 'documentation result)))
do (insert "\n\n"))
(insert "No results for " ident)))))))
Expand Down

0 comments on commit 591d1a8

Please sign in to comment.