get the latest path.
This commit is contained in:
parent
5e7c7aa87d
commit
f1a0e079db
@ -28,7 +28,9 @@
|
||||
(defun ghc-resolve-document-path (pkg)
|
||||
(with-temp-buffer
|
||||
(call-process "ghc-pkg" nil t nil "field" pkg "haddock-html")
|
||||
(goto-char (point-min))
|
||||
(goto-char (point-max))
|
||||
(forward-line -1)
|
||||
(beginning-of-line)
|
||||
(when (looking-at "^haddock-html: \\([^ \n]+\\)$")
|
||||
(match-string-no-properties 1))))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user