Permalink
Browse files

Fix additional haskell compilation regexp entries

  • Loading branch information...
purcell committed Mar 26, 2013
1 parent 319c829 commit a1bdd54f602e1b76dda6d9f0e6d3a2c07fd082bc
Showing with 8 additions and 3 deletions.
  1. +8 −3 init-haskell.el
View
@@ -17,8 +17,13 @@
(add-hook 'haskell-mode-hook #'flymake-haskell-multi-load)
;; Make compilation-mode understand "at blah.hs:11:34-50" lines output by GHC
-(add-to-list
- 'compilation-error-regexp-alist-alist
- '(ghc-at-regexp " at \\(.*l?hs\\):\\([0-9]+\\):\\([0-9]+\\)-[0-9]+$" 1 2 3 0 1))
+(eval-after-load 'compile
+ '(progn
+ (let ((alias 'ghc-at-regexp))
+ (add-to-list
+ 'compilation-error-regexp-alist-alist
+ (list alias " at \\(.*l?hs\\):\\([0-9]+\\):\\([0-9]+\\)-[0-9]+$" 1 2 3 0 1))
+ (add-to-list
+ 'compilation-error-regexp-alist alias))))
(provide 'init-haskell)

0 comments on commit a1bdd54

Please sign in to comment.