| CARVIEW |
Select Language
HTTP/1.1 200 OK
Connection: keep-alive
Server: nginx/1.24.0 (Ubuntu)
Content-Type: text/html; charset=utf-8
Cache-Control: public, max-age=300
Content-Encoding: gzip
Via: 1.1 varnish, 1.1 varnish
Accept-Ranges: bytes
Age: 0
Date: Sat, 17 Jan 2026 09:12:47 GMT
X-Served-By: cache-dfw-kdal2120108-DFW, cache-bom-vanm7210096-BOM
X-Cache: MISS, MISS
X-Cache-Hits: 0, 0
X-Timer: S1768641167.026172,VS0,VE303
Vary: Accept, Accept-Encoding
transfer-encoding: chunked
hspec-annotated-exception: Hspec hook that unwraps test failures from AnnotatedException
[Skip to Readme]
hspec-annotated-exception: Hspec hook that unwraps test failures from AnnotatedException
An hspec hook that lets hspec catch and pretty-print HUnitFailure, the exception that is thrown when a test assertion fails, in the correct way even if it is wrapped in AnnotatedException.
[Skip to Readme]
Downloads
- hspec-annotated-exception-0.0.0.0.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
- No Candidates
| Versions [RSS] | 0.0.0.0 |
|---|---|
| Change log | CHANGELOG.md |
| Dependencies | annotated-exception (>=0.2.0.5), base (>=4.17.2.1 && <5), hspec (>=2.11.10), HUnit (>=1.6.2.0), lens (>=5.2.3), text (>=2.0.2) [details] |
| License | MIT |
| Author | |
| Maintainer | Freckle Education |
| Uploaded | by PatrickBrisbin at 2025-06-03T19:09:11Z |
| Category | Utils |
| Home page | https://github.com/freckle/hspec-annotated-exception#readme |
| Bug tracker | https://github.com/freckle/hspec-annotated-exception/issues |
| Source repo | head: git clone https://github.com/freckle/hspec-annotated-exception |
| Distributions | NixOS:0.0.0.0 |
| Downloads | 19 total (2 in the last 30 days) |
| Rating | (no votes yet) [estimated by Bayesian average] |
| Your Rating |
|
| Status | Docs available [build log] Last success reported on 2025-06-03 [all 1 reports] |
Readme for hspec-annotated-exception-0.0.0.0
[back to package description]haskell-library-template
When using hspec to test a project that uses annotated-exception, an
AnnotatedException thrown by the code under test does not display well
in Hspec's output. hspec-annotated-exception fixes this.
To use this package with Hspec module auto-discovery:
module SpecHook (hook) where
import Test.Hspec (Spec)
import Test.Hspec.AnnotatedException (unwrapAnnotatedHUnitFailure)
hook :: Spec -> Spec
hook = unwrapAnnotatedHUnitFailure