[Haskell-cafe] Haskell-mode 2.4

Stefan Monnier monnier at iro.umontreal.ca
Fri Jan 11 09:24:23 EST 2008

>>>>> "Johan" == Johan Tibell <johan.tibell at gmail.com> writes:

>> > Emacs is completely frozen until I press C-g and then it goes back to
>> > normal (without loading the file). Here's the back trace:
>> > Debugger entered--Lisp error: (quit)
>> >   accept-process-output(#<process haskell>)
>> >   (and (not (re-search-forward comint-prompt-regexp nil t))
>> > (accept-process-output proc))
>> So it seems to be waiting for the prompt but can't find it.
>> If you look at the buffer containing the interactive process, is there
>> a prompt there?  If not, can you try and figure out why not?
>> If yes, can you try and figure out why it is not recognized by the
>> comint-prompt-regexp?

> I had the following in my .ghci to make GHCi's prompt less verbose:

> :set prompt "> "

> Removing that solves the problem.

You can also add the following to your .emacs:

  (add-hook 'inferior-haskell-mode-hook
            (lambda ()
              (set (make-local-variable 'comint-prompt-regexp)
                   "^> ")))

Or some fancier regexp (the default is
"^\\*?[A-Z][\\._a-zA-Z0-9]*\\( \\*?[A-Z][\\._a-zA-Z0-9]*\\)*> ").


More information about the Haskell-Cafe mailing list