You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've had a use case like this: I want to return a case class Paginated[A](total: Long, results: List[A]). However, the list can get very big. What I really wanted was case class Paginated[F[_], A](total: Long, results: Stream[F, A]).
How would we encode such a case class using Circe? I have a solution using Shapeless, pretty much the same thing circe does but with streams. Would it be useful here?
The text was updated successfully, but these errors were encountered:
I've had a use case like this: I want to return a
case class Paginated[A](total: Long, results: List[A])
. However, the list can get very big. What I really wanted wascase class Paginated[F[_], A](total: Long, results: Stream[F, A])
.How would we encode such a case class using Circe? I have a solution using Shapeless, pretty much the same thing circe does but with streams. Would it be useful here?
The text was updated successfully, but these errors were encountered: