-fno-ghci-sandbox & -fbreak-on-error hang on exceptions
Summary
Using -fno-ghci-sandbox
& -fbreak-on-error
together will hang when exceptions are thrown. NB: I have to use the former because I’m developing an SDL game and it’s required to run the game from within ghci
. I wish to use the latter so’s I can investigate uncaught exceptions.
Steps to reproduce
-
Run
ghci -ignore-dot-ghci -fno-ghci-sandbox -fbreak-on-error
(I believe the-ignore-dot-ghci
to be optional, but it does help to isolate the bug). -
When
ghci
has loaded, runreadFile "some path that does not exist"
-
Observe that it has hung, and does not e.g. respond to ⌃C.
Expected behavior
I expected it to do what it would have done with just -fbreak-on-error
:
Stopped in <exception thrown>, <unknown>
_exception :: e = _
[<unknown>] Prelude>
Environment
- GHC version used: ghc 8.8.1
Optional:
- Operating System: macOS 10.15.2
- System Architecture: x86-64