{
  "$type": "site.standard.document",
  "bskyPostRef": {
    "cid": "bafyreiav75rqjytstn2c7znzyvleuwukc637jwv6zagdvcqtyn3tzvkvje",
    "uri": "at://did:plc:pi6woz4d47bkuws673w2il2r/app.bsky.feed.post/3mix2k4g42f42"
  },
  "path": "/t/http-tower-hs-a-rust-tower-inspired-middleware-library-for-haskell/13892?page=2#post_21",
  "publishedAt": "2026-04-07T23:56:01.000Z",
  "site": "https://discourse.haskell.org",
  "textContent": "This would be extremely valuable for parsing e.g. a HTTP response into a response type for an API binding. `fmap` alone isn’t enough because you need to be able to turn a HTTP response into either a higher-level error from the remote service or the expected response type.\n\n(I am specifically thinking of `amazonka` here, where the library has its own logging and retry logic baked in, and I’d love to be able to punt it in favour of just accepting a generic middleware for client retry logic.)",
  "title": "Http-tower-hs — A Rust Tower-inspired middleware library for Haskell"
}