haskell / haskeline

A Haskell library for line input in command-line programs.
https://hackage.haskell.org/package/haskeline
BSD 3-Clause "New" or "Revised" License
221 stars 75 forks source link

ghci not working well in emacs-vterm #167

Closed juhp closed 1 year ago

juhp commented 2 years ago

I have noticed that ghci does not work well in emacs vterm. Same for the simple example in the documentation. I have tested ghc-8.10, ghc-9.0 and ghc-9.2 in Fedora Linux:

Basically the prompt and input are only printed in vterm afterwards (ie after pressing Enter).

On the other hand idris-1.3 and hledger work just fine in vterm. So I wonder where the problem might be... Any ideas how to debug this?

juhp commented 2 years ago

Another datapoint: cabal repl does not work in vterm but stack repl does!

juhp commented 2 years ago

Sadly I found that ghci seems fine in neovim terminal which also uses libvterm...

juhp commented 1 year ago

I believe this got fixed with latest emacs-libvterm (eg with vterm-20221019.641 from melpa)