replacing [Char] with String when inserting inferred type.
Johannes Krause <cjay>
This commit is contained in:
parent
cf16c62c3a
commit
2f1ab4e71d
@ -76,7 +76,9 @@
|
||||
(cond
|
||||
((string-match "Inferred type: \\([^:]+ :: \\)\\(forall [^.]+\\. \\)?\\([^\0]*\\)" data)
|
||||
(beginning-of-line)
|
||||
(insert (match-string 1 data) (match-string 3 data) "\n"))
|
||||
(insert (match-string 1 data)
|
||||
(replace-regexp-in-string "\\[Char\\]" "String" (match-string 3 data))
|
||||
"\n"))
|
||||
((string-match "Not in scope: `\\([^']+\\)'" data)
|
||||
(save-match-data
|
||||
(unless (re-search-forward "^$" nil t)
|
||||
@ -84,7 +86,6 @@
|
||||
(insert "\n")))
|
||||
(insert "\n" (match-string 1 data) " = undefined\n"))))))
|
||||
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
||||
(defun ghc-flymake-err-get-title (x) (nth 0 x))
|
||||
|
Loading…
Reference in New Issue
Block a user