haskell / haskell-mode

Emacs mode for Haskell
http://haskell.github.io/haskell-mode/
GNU General Public License v3.0
1.33k stars 344 forks source link

Haskell repl freezes when I run getChar #1813

Closed Judafa closed 1 year ago

Judafa commented 1 year ago

More precisely, my whole emacs freezes when I enter a character after I ran getChar in the repl.

This works fine when I run it in an other repl though (for example in eshell, after I ran ghci I get getChar working fine).

Any idea on how to fix it?

Judafa commented 1 year ago

After I carefully disabled all emacs packages, I discovered the guilty one: company Just turning off company-mode while in interactive-haskell-mode solves the problem. I solved the entire problem by adding the following line in my emacs config

(add-hook 'haskell-interactive-mode-hook (lambda () (company-mode -1)))

In case my problem is reproducible, it would be great to specify that interactive-haskell-mode and company-mode are not compatible in the doc. Hoping this can help somebody!