Description
Composable service middleware for Haskell, inspired by Rust's Tower.
Description
tower-hs provides a composable middleware abstraction for any service type. Build middleware stacks with retry, timeout, circuit breaker, and more — all with pure error handling via Either (no exceptions).
README.md
tower-hs
Composable service middleware for Haskell, inspired by Rust's Tower.
Generic Service/Middleware abstractions with protocol-agnostic middleware: retry, timeout, circuit breaker, filter, hedge, tracing (OpenTelemetry), logging, validation, request transformation, and test doubles.
Part of the tower-hs mono-repo. See the repo README for full documentation and examples.
Related packages
- http-tower-hs — HTTP client middleware built on tower-hs
- servant-tower-hs — Servant client middleware built on tower-hs.