[GHC] #8715: Prompt stays at | instead of going back to > when pressing C-c in multi-line blocks.
GHC
ghc-devs at haskell.org
Wed Jan 29 20:18:11 UTC 2014
#8715: Prompt stays at | instead of going back to > when pressing C-c in multi-
line blocks.
-------------------------------------------+--------------------------
Reporter: RobinHoksbergen | Owner:
Type: bug | Status: new
Priority: low | Milestone:
Component: GHCi | Version: 7.6.3
Keywords: | Operating System: Linux
Architecture: x86_64 (amd64) | Type of failure: Other
Difficulty: Easy (less than 1 hour) | Test Case:
Blocked By: | Blocking:
Related Tickets: |
-------------------------------------------+--------------------------
Starting a block of code in GHCi is done by writing :{, upon which the
prompt changes from '>' to '|'. Pressing C-c cancels the block of code,
but the '|' prompt remains. This can be somewhat confusing in that it
appears GHCi is still stuck in the current block of code, but returns an
"unknown command ':}'" when trying to close it.
Reproduction steps:
* Run GHCi
* Start a multi-line block with ':{'
* (Optional) Write some code.
* Close the block with C-c.
* The block will now be closed, but the prompt remains.
Opening and closing a new block using the same syntax did not solve the
problem.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8715>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list