Re: [GHC] #5209: ^C doesn't correctly reset the prompt from within multiline commands in ghci

#5209: ^C doesn't correctly reset the prompt from within multiline commands in ghci -------------------------------+------------------------------------------- Reporter: dmwit | Owner: bennofs Type: bug | Status: new Priority: low | Milestone: 7.6.2 Component: GHCi | Version: 7.0.3 Resolution: | Keywords: Operating System: | Architecture: Unknown/Multiple Unknown/Multiple | Difficulty: Easy (less than 1 hour) Type of failure: | Blocked By: None/Unknown | Related Tickets: Test Case: | Blocking: | -------------------------------+------------------------------------------- Comment (by bennofs): The bug is trivally fixed by putting the code for resetting the promt in a `finally` clause. The attached patch does just that. I don't know how I could add a test case for this bug. Is there a way to send Ctrl-C to ghci with the current testing infrastructure? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/5209#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC