Ihor Radchenko <yanta...@posteo.net> writes: > Part of the problem is that haskell-mode appears to use non-standard > prompt: > > comint-prompt-regexp: ^[[:alnum:].*_() |λ]*> \|^λ?> > Output: ghci| ghci| ghci| ghci| ghci| 6 > > Note "|".
You can fix this by sending `set :prompt-cont ""`. Here is a demonstration: GHCi, version 9.0.2: https://www.haskell.org/ghc/ :? for help ghci> ghci> :set prompt-cont "" ghci> :{ let { x = 2 ; y = 3 } in x*y :} 6 ghci>