diff --git a/elisp/ghc-check.el b/elisp/ghc-check.el index 23b597c..b287dab 100644 --- a/elisp/ghc-check.el +++ b/elisp/ghc-check.el @@ -66,7 +66,7 @@ (let ((regex "^\\([^\n\0]*\\):\\([0-9]+\\):\\([0-9]+\\): *\\(.+\\)") info infos) (while (re-search-forward regex nil t) - (let* ((file (match-string 1)) + (let* ((file (expand-file-name (match-string 1))) (line (string-to-number (match-string 2))) ;; don't take column to make multiple same errors to a single. (msg (match-string 4))