no backspace, delete or arrow keys in ghci

Duncan Coutts duncan.coutts at
Tue Sep 8 15:13:51 EDT 2009

On Mon, 2009-09-07 at 11:24 -0700, Judah Jacobson wrote:

> I'm not sure I understand.  Are you saying that you can't use
> backspace/arrows/etc when the getLine command itself is waiting for
> input?  But otherwise at the "Prelude>" prompt, where you type in the
> commands, everything behaves fine?
> If so, that is normal behavior for the getLine function.

For what it's worth, while ghci has behaved this way for a long time
(since at least 6.4), hugs seems to work more nicely in this regard. In
hugs when you getLine it seems to switch into cooked mode so you at
least get backspace etc.


More information about the Glasgow-haskell-users mailing list