Fix ghci crash when the user code closes stdin
authorIan Lynagh <ian@well-typed.com>
Sat, 15 Jun 2013 20:54:22 +0000 (21:54 +0100)
committerIan Lynagh <ian@well-typed.com>
Sat, 15 Jun 2013 20:54:22 +0000 (21:54 +0100)
commitb097dc9a25f986f0a07dcd2ad1e7fdeeac63198a
tree8d8090cf3b88cceec60ca857f31f804d95c7bdcf
parent75947bb63794cae5950f679c8df86441b736b3fa
Fix ghci crash when the user code closes stdin

Now that we share stdin with the program, we have to check for
handle-closed as well as EOF, as the program might have closed
stdin.
ghc/InteractiveUI.hs