[project @ 2005-01-26 12:58:09 by simonmar]
authorsimonmar <unknown>
Wed, 26 Jan 2005 12:58:09 +0000 (12:58 +0000)
committersimonmar <unknown>
Wed, 26 Jan 2005 12:58:09 +0000 (12:58 +0000)
commit66797dc0cdc254837e58f9c46393e6df54d36aaa
tree3a4c62a6b0b2cb6c605110cc403daffed4cd27e9
parent1f516e8274608d09860b8d28d8f2cd07e4df6cf2
[project @ 2005-01-26 12:58:09 by simonmar]
fileLoop: catch InvalidArgument and behave as for EOF (i.e. terminate
the session).  This means that the user can close stdin to end a GHCi
session, but it also means that the tests that run programs which use
getContents inside GHCi won't crash because stdin has been closed.
ghc/compiler/ghci/InteractiveUI.hs