inserting signature for GHC 7.
This commit is contained in:
parent
973f43c93a
commit
a4a3be93eb
@ -78,7 +78,7 @@
|
|||||||
(with-temp-buffer
|
(with-temp-buffer
|
||||||
(insert str)
|
(insert str)
|
||||||
(goto-char (point-min))
|
(goto-char (point-min))
|
||||||
(when (re-search-forward "Inferred type: " nil t)
|
(when (re-search-forward "Inferred type: \\|no type signature:\\( \\|\0 +\\)?" nil t)
|
||||||
(delete-region (point-min) (point)))
|
(delete-region (point-min) (point)))
|
||||||
(when (re-search-forward " forall [^.]+\\." nil t)
|
(when (re-search-forward " forall [^.]+\\." nil t)
|
||||||
(replace-match ""))
|
(replace-match ""))
|
||||||
@ -95,7 +95,7 @@
|
|||||||
(dolist (data (ghc-flymake-err-list))
|
(dolist (data (ghc-flymake-err-list))
|
||||||
(save-excursion
|
(save-excursion
|
||||||
(cond
|
(cond
|
||||||
((string-match "Inferred type: " data)
|
((string-match "Inferred type: \\|no type signature:" data)
|
||||||
(beginning-of-line)
|
(beginning-of-line)
|
||||||
(insert (ghc-extract-type data) "\n"))
|
(insert (ghc-extract-type data) "\n"))
|
||||||
((string-match "lacks an accompanying binding" data)
|
((string-match "lacks an accompanying binding" data)
|
||||||
|
Loading…
Reference in New Issue
Block a user