From 62ce201e5aaf7219c6673699218b0434fecfb901 Mon Sep 17 00:00:00 2001 From: Chris Martin Date: Wed, 5 Aug 2026 14:22:46 -0600 Subject: [PATCH 1/2] test: add specs for seed exception context Adds a baseline spec confirming the HUnitFailure seed-prefix still works, plus two specs asserting the GraphulaExceptionContext seed annotation is present in someExceptionContext after runGraphulaT rethrows. Both context specs currently fail: logFailingSeed's `throwIO . addExceptionContext ctx . whenException f` pattern loses all context (including one just added) because `throwIO`/`toException` on a `SomeException` unconditionally resets its context to empty before re-populating with an automatic backtrace annotation. This happens regardless of whether the caught exception is an HUnitFailure or already carried its own context. Co-Authored-By: Claude Sonnet 5 --- test/README.lhs | 51 ++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 50 insertions(+), 1 deletion(-) diff --git a/test/README.lhs b/test/README.lhs index 66b82af..53ddd79 100644 --- a/test/README.lhs +++ b/test/README.lhs @@ -11,6 +11,7 @@ dependencies. We use this interface to generate fixtures for automated testing.