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

GHC ghc-devs at haskell.org
Fri Jan 3 21:24:57 UTC 2014


#5209: ^C doesn't correctly reset the prompt from within multiline commands in
ghci
-------------------------------+-------------------------------------------
        Reporter:  dmwit       |            Owner:  bennofs
            Type:  bug         |           Status:  patch
        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 Krzysztof Gogolewski <krz.gogolewski@…>):

 In [changeset:"4d70840db82065bf19767a5f7231a9b1a3f56e38/ghc"]:
 {{{
 #!CommitTicketReference repository="ghc"
 revision="4d70840db82065bf19767a5f7231a9b1a3f56e38"
 Fix #5209: Reset GHCi prompt in multiline mode

 GHCi didn't reset the multiline prompt when an exception (in particular,
 the UserInterrupt exception) occured. This commit uses `finally` to
 reset the prompt in all cases.
 }}}

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/5209#comment:8>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list