Re: [PATCH] Add tests for ob-haskell (GHCi)
Ihor Radchenko writes: > Note that setting the prompt to non-"", makes little sense - we want to > remove it anyway. Why do extra work? Oh, I didn't notice you set the prompt to "". I thought the extra work you were being done was *because* somewhere else the default was set to "λ ". I agree, do whatever is less work and more normalized here.
Re: [PATCH] Add tests for ob-haskell (GHCi)
I forgot to mention you can also set the prompt as well to something simple like `:set prompt "> "`. > Ihor Radchenko 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>
Re: [PATCH] Add tests for ob-haskell (GHCi)
Ihor Radchenko 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>