-fno-ghci-sandbox & -fbreak-on-error hang on exceptions
-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
ghci -ignore-dot-ghci -fno-ghci-sandbox -fbreak-on-error(I believe the
-ignore-dot-ghcito be optional, but it does help to isolate the bug).
ghcihas loaded, run
readFile "some path that does not exist"
Observe that it has hung, and does not e.g. respond to ⌃C.
I expected it to do what it would have done with just
Stopped in <exception thrown>, <unknown> _exception :: e = _ [<unknown>] Prelude>
- GHC version used: ghc 8.8.1
- Operating System: macOS 10.15.2
- System Architecture: x86-64