#cats-effect

[ follow ]
Software development
fromMedium
1 week ago

Streaming DynamoDB Data with Scanamo, Cats Effect, and FS2-The Memory-Safe Way

Use Cats Effect Resource with Scanamo to safely stream large DynamoDB query or scan results page-by-page to avoid loading all records into memory.
fromUnderscore
1 year ago

Scala with Cats 2

Two questions come up time and again: "when will the book be updated to Cats 2?", and "when will printed versions be available?" We're happy to say the answer to both is: soon! We have started working on updating the book. In fact the current version of the book, which is linked from the web site, is built against Cats 2 (although it does not discuss new concepts like the Parallel type class). This issue tracks our progress on the update.
Software development
fromTypelevel
3 months ago

Custom Error Types Using Cats Effect and MTL

One of the most famous and longstanding limitations of the Cats Effect IO type (and the Cats generic typeclasses) is the fact that the only available error channel is Throwable. This stands in contrast to bifunctor or polyfunctor techniques, which add a typed error channel within the monad itself. You can see this easily in type signatures: IO[String] indicates an IO which returns a String or may produce a Throwable error ( Future[String] is directly analogous).
[ Load more ]