From 6989445fd3efa3e99507e137404695e91091c884 Mon Sep 17 00:00:00 2001 From: Andy Scott Date: Sat, 29 Apr 2017 16:51:23 -0700 Subject: [PATCH] Make InjectK use FunctionK.id for reflexive injection --- core/src/main/scala/cats/InjectK.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/scala/cats/InjectK.scala b/core/src/main/scala/cats/InjectK.scala index b2c76b9905..6176204259 100644 --- a/core/src/main/scala/cats/InjectK.scala +++ b/core/src/main/scala/cats/InjectK.scala @@ -22,7 +22,7 @@ sealed abstract class InjectK[F[_], G[_]] { private[cats] sealed abstract class InjectKInstances { implicit def catsReflexiveInjectKInstance[F[_]]: InjectK[F, F] = new InjectK[F, F] { - val inj = λ[FunctionK[F, F]](identity(_)) + val inj = FunctionK.id[F] val prj = λ[FunctionK[F, λ[α => Option[F[α]]]]](Some(_)) }