Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/pages/type-classes/equal.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@ which accepts a function of type `(A, A) => Boolean` and returns an `Eq[A]`:
```scala mdoc:silent
import java.util.Date
import cats.instances.long._ // for Eq
import cats.Eq
import cats.syntax.eq._
```

```scala mdoc:silent
Expand All @@ -159,6 +161,7 @@ implicit val dateEq: Eq[Date] =

```scala mdoc:silent
val x = new Date() // now
Thread.sleep(1000)
val y = new Date() // a bit later than now
```

Expand Down