Skip to content

Commit

Permalink
Make InjectK use FunctionK.id for reflexive injection (#1641)
Browse files Browse the repository at this point in the history
  • Loading branch information
andyscott authored and peterneyens committed Apr 30, 2017
1 parent f686984 commit 5a90b61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/scala/cats/InjectK.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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(_))
}
Expand Down

0 comments on commit 5a90b61

Please sign in to comment.