cats icon indicating copy to clipboard operation
cats copied to clipboard

Something is wrong with the Writer documentation?

Open LLCampos opened this issue 3 years ago • 1 comments

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._

LLCampos avatar Aug 21 '21 08:08 LLCampos

That's odd. It does the same for me, on 2.13 and 2.12. The mdoc directives look correct.

rossabaker avatar Nov 17 '21 05:11 rossabaker