Skip to content

Commit

Permalink
Support GHC 7.8's message format for extension suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdone committed Jun 19, 2014
1 parent d62f51a commit faf4c56
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion haskell-process.el
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,9 @@ from `module-buffer'."

(defun haskell-process-trigger-suggestions (session msg file line)
"Trigger prompting to add any extension suggestions."
(cond ((let ((case-fold-search nil)) (string-match " -X\\([A-Z][A-Za-z]+\\)" msg))
(cond ((let ((case-fold-search nil))
(or (string-match " -X\\([A-Z][A-Za-z]+\\)" msg)
(string-match "Use \\([A-Z][A-Za-z]+\\) to permit this" msg)))
(when haskell-process-suggest-language-pragmas
(haskell-process-suggest-pragma session "LANGUAGE" (match-string 1 msg) file)))
((string-match " The \\(qualified \\)?import of[ ][‘`‛]\\([^ ]+\\)['’] is redundant" msg)
Expand Down

0 comments on commit faf4c56

Please sign in to comment.