I recently learned about the uncaught exception handler in GHC Haskell. I wrote a short blog post showing what it does and why you might want it.
16 Likes
I thought I remembered something like this, and boom! Old blog post saves the day. Thanks!
2 Likes
Indeed very helpful.
But what if the originalHandler is already the bad one? The prime reason the GHC devs thought of is mentioned in that handler’s exception handler: Locale problems. So apparently the originalHandler already uses handle to catch e.g. locale problems during show.
1 Like