Skip to content

Commit

Permalink
Better "not in scope" detection
Browse files Browse the repository at this point in the history
This ignores the “type constructor or classtype constructor or class” stuff.
  • Loading branch information
chrisdone committed Jan 20, 2014
1 parent ab7ee92 commit 175c6cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion haskell-process.el
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,7 @@ from `module-buffer'."
((string-match "against inferred type `\\[Char\\]'" msg)
(when haskell-process-suggest-overloaded-strings
(haskell-process-suggest-pragma session "LANGUAGE" "OverloadedStrings" file)))
((string-match "^Not in scope: `\\(.+\\)'$" msg)
((string-match "^Not in scope: .*`\\(.+\\)'$" msg)
(when haskell-process-suggest-hoogle-imports
(haskell-process-suggest-hoogle-imports session msg file)))
((string-match "^[ ]+It is a member of the hidden package `\\(.+\\)'.$" msg)
Expand Down

0 comments on commit 175c6cc

Please sign in to comment.