Skip to content

:steplocal panics after break-on-error

Using steplocal after breaking on an exception leads to GHCI giving a pattern match error

Minimal testcase:

Prelude> :set -fbreak-on-exception
Prelude> error "abc"
Stopped in <exception thrown>, <unknown>
_exception :: e = _
[<unknown>] [<unknown>] Prelude> :steplocal
*** Exception: Pattern match failure in do expression at ghc/GHCi/UI.hs:3149:12-18

:step works as expected.

Trac metadata
Trac field Value
Version 8.2.2
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
Edited by Roland Senn
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information