Skip to content

Commit 3d834d4

Browse files
committed
Fix OverloadedStrings suggester
1 parent cc161d7 commit 3d834d4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

haskell-process.el

+2-1
Original file line numberDiff line numberDiff line change
@@ -730,7 +730,8 @@ from `module-buffer'."
730730
((string-match "Warning: orphan instance: " msg)
731731
(when haskell-process-suggest-no-warn-orphans
732732
(haskell-process-suggest-pragma session "OPTIONS" "-fno-warn-orphans" file)))
733-
((string-match "against inferred type [‘`‛]\\[Char\\]['’]" msg)
733+
((or (string-match "against inferred type [‘`‛]\\[Char\\]['’]" msg)
734+
(string-match "with actual type [‘`‛]\\[Char\\]['’]" msg))
734735
(when haskell-process-suggest-overloaded-strings
735736
(haskell-process-suggest-pragma session "LANGUAGE" "OverloadedStrings" file)))
736737
((string-match "^Not in scope: .*[‘`‛]\\(.+\\)['’]$" msg)

0 commit comments

Comments
 (0)