cd /news/developer-tools/exception-annotations-lay-of-the-lan… · home topics developer-tools article
[ARTICLE · art-9842] src=discourse.haskell.org ↗ pub= topic=developer-tools verified=true sentiment=· neutral

Exception Annotations: Lay of the Land

The article discusses the design and limitations of exception annotations in Haskell, noting that the `annotated-exception` library works on older GHC versions but forces all library consumers to use the `AnnotatedException` wrapper. The author plans to incorporate new `ExceptionContext` changes into the library without compromising its utility and user experience.

read1 min views6 publishedMay 22, 2026

I completely agree. I remember advocating heavily for the adoption of being part of a lot of the design discussions around this feature (Original blog post, the library as it is today), and I do not at all recall this being a thing anyone needed or wanted. annotated-exception works today and on older GHCs and does not contain these warts nearly as much; but it is unfortunately limited for library development because it forces all consumers of your library to adopt annotated-exception and deal with the AnnotatedException wrapper. My next plan for the library is to figure out how to incorporate the new ExceptionContext changes without ruining the utility and UX of the library.

── more in #developer-tools 4 stories · sorted by recency
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/exception-annotation…] indexed:0 read:1min 2026-05-22 ·