Created
June 2, 2016 06:24
-
-
Save anonymous/4e81c4dd044caa3d36a735262fd497c2 to your computer and use it in GitHub Desktop.
the description for this gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
final class FreeInjectPartiallyApplied[F[_], G[_]] private[free] { | |
def apply[A](fa: F[A])(implicit I : Inject[F, G]): Free[G, A] = | |
Free.liftF(I.inj(fa)) | |
} | |
def inject[F[_], G[_]]: FreeInjectPartiallyApplied[F, G] = new FreeInjectPartiallyApplied |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment