Prompt stays at | instead of going back to > when pressing C-c in multi-line blocks.
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.
Trac metadata
| Trac field | Value |
|---|---|
| Version | 7.6.3 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | low |
| Resolution | Unresolved |
| Component | GHCi |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | hvr |
| Operating system | |
| Architecture |