Skip to content

Commit

Permalink
Improve usefulness of file-relative-name in cycle code
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdone committed Jun 17, 2014
1 parent 36e39a4 commit d62f51a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions haskell-process.el
Original file line number Diff line number Diff line change
Expand Up @@ -722,10 +722,10 @@ from `module-buffer'."
"\\(Module imports form a cycle:[ \n]+module [^ ]+ ([^)]+)[[:unibyte:][:nonascii:]]+?\\)\nFailed")
(let ((err (match-string 1 buffer)))
(when (string-match "module [`'‘‛]\\([^ ]+\\)['’`] (\\([^)]+\\))" err)
(let* ((module (match-string 1 err))
(let* ((default-directory (haskell-session-current-dir session))
(module (match-string 1 err))
(file (match-string 2 err))
(relative-file-name (file-relative-name file
(haskell-session-current-dir session))))
(relative-file-name (file-relative-name file)))
(haskell-interactive-show-load-message
session
'import-cycle
Expand Down

0 comments on commit d62f51a

Please sign in to comment.