General summary/comments (optional)
stack repl terminates when I repeatedly press ctrl+c. Two times is enough. Termination is observed on each of 5 consecutive runs. If there is other activity between the ctrl+c presses, still terminates on the second ctrl+c.
In the same situation, stack exec ghci does not terminate.
There is an error log in the gist.
This issue elsewhere may be related, as the error is the same.
Steps to reproduce
% stack repl
λ {- repeatedly press ctrl+c -}
% <stdin>: hGetChar: hardware fault (Input/output error)
%
Expected
A new clear prompt is offered, the same as with stack exec ghci.
Actual
stack repl terminates, an error is printed to stderr.
Stack version
% stack --version
Version 1.7.0, Git revision 2631803b9c502fa5225eac3536acda9d1d314aa7 (5619 commits) x86_64 hpack-0.20.0
Method of installation
ArchLinux AUR haskell-stack-git