cats.kernel.ScalaVersionSpecificInstances.scala Maven / Gradle / Ivy
The newest version!
package cats.kernel
private[kernel] trait ScalaVersionSpecificOrderInstances extends ScalaVersionSpecificPartialOrderInstances {
implicit def catsKernelOrderForStream[A: Order]: Order[Stream[A]] =
cats.kernel.instances.stream.catsKernelStdOrderForStream[A]
}
private[kernel] trait ScalaVersionSpecificPartialOrderInstances extends ScalaVersionSpecificHashInstances {
implicit def catsKernelPartialOrderForStream[A: PartialOrder]: PartialOrder[Stream[A]] =
cats.kernel.instances.stream.catsKernelStdPartialOrderForStream[A]
}
private[kernel] trait ScalaVersionSpecificHashInstances extends ScalaVersionSpecificEqInstances {
implicit def catsKernelHashForStream[A: Hash]: Hash[Stream[A]] =
cats.kernel.instances.stream.catsKernelStdHashForStream[A]
}
private[kernel] trait ScalaVersionSpecificEqInstances {
implicit def catsKernelEqForStream[A: Eq]: Eq[Stream[A]] = cats.kernel.instances.stream.catsKernelStdEqForStream[A]
}
private[kernel] trait ScalaVersionSpecificMonoidInstances {
implicit def catsKernelMonoidForStream[A]: Monoid[Stream[A]] =
cats.kernel.instances.stream.catsKernelStdMonoidForStream[A]
}