From 11ddf9e1abd305dc9feea518d71cd02e7b3d963b Mon Sep 17 00:00:00 2001 From: Andy Scott Date: Sun, 30 Apr 2017 11:31:40 -0700 Subject: [PATCH] Unseal InjectK to allow for extension by other libraries --- core/src/main/scala/cats/InjectK.scala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/main/scala/cats/InjectK.scala b/core/src/main/scala/cats/InjectK.scala index b2c76b9905..769456af34 100644 --- a/core/src/main/scala/cats/InjectK.scala +++ b/core/src/main/scala/cats/InjectK.scala @@ -9,14 +9,14 @@ import cats.data.EitherK * * @see [[http://www.staff.science.uu.nl/~swier004/publications/2008-jfp.pdf]] */ -sealed abstract class InjectK[F[_], G[_]] { +abstract class InjectK[F[_], G[_]] { def inj: FunctionK[F, G] def prj: FunctionK[G, λ[α => Option[F[α]]]] - def apply[A](fa: F[A]): G[A] = inj(fa) + final def apply[A](fa: F[A]): G[A] = inj(fa) - def unapply[A](ga: G[A]): Option[F[A]] = prj(ga) + final def unapply[A](ga: G[A]): Option[F[A]] = prj(ga) } private[cats] sealed abstract class InjectKInstances {