Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display "Collecting type info for N module(s) ..." message for GHC 8 #1443

Merged
merged 2 commits into from
Oct 26, 2016

Conversation

vshabanov
Copy link
Contributor

No description provided.

@@ -88,7 +88,14 @@ Restarts the SESSION's process if that is the case."
((haskell-process-consume process "\nBuilding \\(.+?\\)\\.\\.\\.")
(let ((msg (format "Building: %s" (match-string 1 buffer))))
(haskell-interactive-mode-echo (haskell-process-session process) msg)
(haskell-mode-message-line msg)))))
(haskell-mode-message-line msg)))
((string-match "\\(Collecting type info for [[:digit:]]+ module(s) ...\\)"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove the \\( and \\) and use string-match 0 instead of string-match 1 later on.

@gracjan
Copy link
Contributor

gracjan commented Oct 26, 2016

Overall it is a shame that we do not have any automated tests for this kind of stuff. Next time a GHC 8.0.x or 9.x comes out it may change this string and functionality will silently fail.

@geraldus
Copy link
Contributor

This is second time we've beaten by changed GHC output. You're right, we should have tests for all GHC output parsing code pieces.

@vshabanov
Copy link
Contributor Author

I've made changes you've proposed.

@gracjan gracjan merged commit cd44e30 into haskell:master Oct 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants