cats
cats copied to clipboard
Something is wrong with the Writer documentation?
See here.
import cats.data.Writer
import scala.math.sqrt
val writer1: Writer[String, Double] = Writer.value(5.0).tell("Initial value ")
This fails with
diverging implicit expansion for type cats.kernel.Order[A]
starting with method catsKernelOrderForFunction0 in object Eq
val writer1: Writer[String, Double] = Writer.value(5.0).tell("Initial value ")
Still fails if I add the following, from the beginning of the docs page.
import cats.instances._
That's odd. It does the same for me, on 2.13 and 2.12. The mdoc directives look correct.