How do I use “writeOutputStream” with an fs2 Stream[IO, Byte]
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box; 1 I am trying to use fs2.io.writeOutputStream for the output to a Java AWS lambda fn. I don't know how to provide the implicit parameter it's looking for: "no implicits found for parameter cs: ContextShift[IO]" I found some documentation for creating my own implicit ContextShift object but that seems like overkill for what I'm trying to do. final def handleRequest(in: InputStream, out: OutputStream, context: Context): Unit = (for bytes <- in.compile.toList str = getString(bytes) args <- decode(str).raiseIO _ <- produce(args).to(writeOutputStream(IO(out), global)).compile.drain yield Unit).unsafeRunAsyncAndForget() // throws exception in the case of Failure // ------------------------------------------------ // produce(args: MyCaseClass): fs2.Stream[IO, Byte] scala aws-l