Skip to content

Commit

Permalink
Fix compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
joroKr21 committed Aug 11, 2022
1 parent 6dd9ca3 commit e10b935
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/typeclasses/invariantmonoidal.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def unit: Semigroup[Unit] =
Semigroup.instance((_, _) => ())

def product[A, B](fa: Semigroup[A], fb: Semigroup[B]): Semigroup[(A, B)] =
Semigroup.instances { case ((xa, xb), (ya, yb)) =>
Semigroup.instance { case ((xa, xb), (ya, yb)) =>
fa.combine(xa, ya) -> fb.combine(xb, yb)
}
```
Expand Down
4 changes: 2 additions & 2 deletions free/src/test/scala/cats/free/FreeTSuite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -302,9 +302,9 @@ trait FreeTSuiteInstances {
override def map[A, B](fa: JustFunctor[A])(f: A => B): JustFunctor[B] = JustFunctor(f(fa.a))
}

implicit def freeTOptionEq[A](implicit A: Eq[A], OM: Monad[Option]): Eq[FreeTOption[A]] =
implicit def freeTOptionEq[A](implicit A: Eq[A]): Eq[FreeTOption[A]] =
Eq.by(_.runM(identity))

implicit def freeTStateEq[A](implicit A: Eq[A], SM: Monad[IntState]): Eq[FreeTState[A]] =
implicit def freeTStateEq[A](implicit A: Eq[A]): Eq[FreeTState[A]] =
Eq.by(_.runM(identity))
}

0 comments on commit e10b935

Please sign in to comment.