Skip to content

Commit 43b4036

Browse files
authored
Merge pull request #1835 from haskell/issue-1834
Fix #1834: remove bad regex that was supposed to recognize a LANGUAGE suggestion
2 parents 3e8ff53 + 37a3de8 commit 43b4036

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

haskell-load.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,8 @@ list of modules where missed IDENT was found."
205205
(string-match
206206
"Use \\([A-Z][A-Za-z]+\\) if you want to disable this"
207207
msg)
208-
(string-match "use \\([A-Z][A-Za-z]+\\)" msg)
208+
(and (string-match "use \\([A-Z][A-Za-z]+\\)" msg)
209+
(not (string-match "refactoring to use" msg)))
209210
(string-match "You need \\([A-Z][A-Za-z]+\\)" msg)))
210211
(when haskell-process-suggest-language-pragmas
211212
(haskell-process-suggest-pragma

0 commit comments

Comments
 (0)