On Wed, Nov 30, 2016 at 08:28PM, Richard Smith wrote:
> The issue is happening before getLine receives the user's input. So, suppose I
> have a basic function that asks for my name and then echoes it back to the
> terminal; if I make a typo while inputting my name and then try to backspace
> correct, the console will display the "^?" characters. E.g.
Unfortunately, I cannot reproduce this. Backspace works as expected for
me for the following program:
$ echo "main = getLine >>= putStrLn" > Test.hs
$ ghc -o test Test.hs
using both v7.10.3 and v8.0.1.
Could you please try the following program in C:
================== %>< ============================
fgets(s, 32, stdin);
================== ><% ============================
Does backspace work in that case?
Pkg-haskell-maintainers mailing list