Skip to content

Commit 20f72cc

Browse files
authored
Merge pull request #1737 from Jasagredo/include-package-prefix-in-compilation-mode
Add package prefix to `haskell-compilation-error-regexp-alist`
2 parents 3a019e6 + fb8df6c commit 20f72cc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

haskell-compile.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,8 @@ The `%s' placeholder is replaced by the current buffer's filename."
9292

9393
(defconst haskell-compilation-error-regexp-alist
9494
`((,(concat
95-
"^ *\\(?1:[^\t\r\n]+?\\):"
95+
"^ *\\([^\n\r\t>]*\s*> \\)?" ;; if using multi-package stack project, remove the package name that is prepended
96+
"\\(?1:[^\t\r\n]+?\\):"
9697
"\\(?:"
9798
"\\(?2:[0-9]+\\):\\(?4:[0-9]+\\)\\(?:-\\(?5:[0-9]+\\)\\)?" ;; "121:1" & "12:3-5"
9899
"\\|"

0 commit comments

Comments
 (0)