The Haskell Unfolder Episode 29: exceptions, annotations and backtraces

Опубликовано: 09 Август 2026
на канале: Well-Typed
1,070
68

Version 9.10 of GHC introduces an extremely useful new feature: exception annotations and automatic exception backtraces. This new feature, four years in the making, can be a life-saver when debugging code and has not received nearly as much attention as it deserves. In this episode of the Haskell Unfolder we therefore give an overview of the changes and discuss how we can take advantage of them.

Resources:

GitHub repo with the example code from the episode: https://github.com/well-typed/unfolder
The full exception backtrace proposal (most of which is now accepted and implemented): https://github.com/ghc-proposals/ghc-...
Part 4 of the proposal, still under discussion (about "WhileHandling"): https://github.com/haskell/core-libra...