diff --git a/core/src/main/scala/cats/data/Streaming.scala b/core/src/main/scala/cats/data/Streaming.scala index f9f8530c9e..30848ad516 100644 --- a/core/src/main/scala/cats/data/Streaming.scala +++ b/core/src/main/scala/cats/data/Streaming.scala @@ -58,7 +58,7 @@ import scala.collection.mutable * constructed with `Foldable#foldRight`, and that `.map` and * `.flatMap` operations over the tail will be safely trampolined. */ -sealed abstract class Streaming[A] { lhs => +sealed abstract class Streaming[A] extends Product with Serializable { lhs => import Streaming.{Empty, Wait, Cons} diff --git a/core/src/main/scala/cats/data/StreamingT.scala b/core/src/main/scala/cats/data/StreamingT.scala index d0c76a5b42..86c2734509 100644 --- a/core/src/main/scala/cats/data/StreamingT.scala +++ b/core/src/main/scala/cats/data/StreamingT.scala @@ -14,7 +14,7 @@ import cats.syntax.all._ * not support many methods on `Streaming[A]` which return immediate * values. */ -sealed abstract class StreamingT[F[_], A] { lhs => +sealed abstract class StreamingT[F[_], A] extends Product with Serializable { lhs => import StreamingT.{Empty, Wait, Cons}