In Haskell, I'm processing some data via conduits. During that processing, I want to conditionally store that data in S3. Are there any S3 libraries that will allow me to do this? Effectively, what I want to do is "tee" the pipeline created by the conduit and put the data it contains on S3 while continuing to process it.
I've found the aws library (https://hackage.haskell.org/package/aws), but the functions like multipartUpload
take a Source
as an argument. Given that I'm already inside the conduit, this doesn't seem like something I can use.