Skip to content

Commit

Permalink
Merge pull request haskell#1609 from fommil/tasty-warnings
Browse files Browse the repository at this point in the history
failed tasty tests are errors
  • Loading branch information
purcell authored Sep 11, 2018
2 parents dd0ea64 + 988b506 commit 95c970a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions haskell-compile.el
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ The `%s' placeholder is replaced by the current buffer's filename."
("^ \\(?:Declared at:\\| \\) \\(?1:[^ \t\r\n]+\\):\\(?2:[0-9]+\\):\\(?4:[0-9]+\\)$"
1 2 4 0) ;; info locus

;; failed tasty tests
(".*error, called at \\(.*\\.hs\\):\\([0-9]+\\):\\([0-9]+\\) in .*" 1 2 3 2 1)
(" +\\(.*\\.hs\\):\\([0-9]+\\):$" 1 2 nil 2 1)

;; this is the weakest pattern as it's subject to line wrapping et al.
(" at \\(?1:[^ \t\r\n]+\\):\\(?2:[0-9]+\\):\\(?4:[0-9]+\\)\\(?:-\\(?5:[0-9]+\\)\\)?[)]?$"
1 2 (4 . 5) 0)) ;; info locus
Expand Down

0 comments on commit 95c970a

Please sign in to comment.