From c41e3e5cdf74cfa24eda78aaab1d926d72fc5963 Mon Sep 17 00:00:00 2001 From: Kazu Yamamoto Date: Fri, 16 Jul 2010 19:46:15 +0900 Subject: [PATCH] bug fix for resolution of package name. --- elisp/ghc-doc.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elisp/ghc-doc.el b/elisp/ghc-doc.el index 24257eb..e90a5a3 100644 --- a/elisp/ghc-doc.el +++ b/elisp/ghc-doc.el @@ -22,7 +22,7 @@ (with-temp-buffer (call-process "ghc-pkg" nil t nil "find-module" "--simple-output" mod) (goto-char (point-min)) - (when (looking-at "^\\(.+\\)-[0-9]") + (when (looking-at "^\\([^ ]+\\)-[0-9]") (match-string-no-properties 1)))) (defun ghc-resolve-document-path (pkg)