diff --git a/haskell-interactive-mode.el b/haskell-interactive-mode.el index 5f292213d..bda412127 100644 --- a/haskell-interactive-mode.el +++ b/haskell-interactive-mode.el @@ -1016,8 +1016,8 @@ don't care when the thing completes as long as it's soonish." "Look for an compile error; if there is one, pop that up in a buffer, similar to `debug-on-error'." (when (and haskell-interactive-types-for-show-ambiguous - (string-match "^\n:[0-9]+:[0-9]+:" response) - (not (string-match "^\n:[0-9]+:[0-9]+:[\n ]+Warning:" response))) + (string-match "^\n:[-0-9]+:[-0-9]+:" response) + (not (string-match "^\n:[-0-9]+:[-0-9]+:[\n ]+Warning:" response))) (let ((inhibit-read-only t)) (delete-region haskell-interactive-mode-prompt-start (point)) (set-marker haskell-interactive-mode-prompt-start