File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -205,13 +205,8 @@ list of modules where missed IDENT was found."
205
205
(string-match
206
206
" Use \\ ([A-Z][A-Za-z]+\\ ) if you want to disable this"
207
207
msg)
208
- ; ; Andreas Abel, 2024-01-10, https://github.com/haskell/haskell-mode/issues/1834
209
- ; ; The following regex also matches the new x-partial warning
210
- ; ; "Consider refactoring to use Data.List.NonEmpty"
211
- ; ; which would result in a suggestion to
212
- ; ; "Add {-# LANGUAGE Data #-} to the top of the file?"
213
- ; ; Thus, we disable it.
214
- ; ; (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)))
215
210
(string-match " You need \\ ([A-Z][A-Za-z]+\\ )" msg)))
216
211
(when haskell-process-suggest-language-pragmas
217
212
(haskell-process-suggest-pragma
You can’t perform that action at this time.
0 commit comments