From 0cdccce0ffb6df856a67e5ba8210c5aa6742f810 Mon Sep 17 00:00:00 2001 From: Kazu Yamamoto Date: Fri, 16 Jul 2010 18:59:04 +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 69a1a75..24257eb 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 "^\\([^-]+\\)-") + (when (looking-at "^\\(.+\\)-[0-9]") (match-string-no-properties 1)))) (defun ghc-resolve-document-path (pkg)