Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
servant
Main repository for the servant libraries — DSL for describing, serving, querying, mocking, documenting web applications and more!
Based on some issues you submitted against the Amazonka repo, I recommend taking a look at https://github.com/aveltras/amazonka-servant-streaming/pull/1 , which shows how to stop ResourceT from closing a streamed response body from AWS before it has been streamed out to the HTTP client.
Possibly interesting thread here: https://github.com/fpco/unliftio/issues/68
Dunno if this is helpful, but I found this github issue about ResourceT and servant https://github.com/haskell-servant/servant/issues/1345