Last active
February 20, 2020 15:29
-
-
Save lforite/f7ea7df8b3ffc6bce52b7f4f3107ad01 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| object RIO { | |
| def unit: Kleisli[IO, CorrelationId, Unit] = Kleisli.pure(()) | |
| def liftF[B](x: IO[B]): Kleisli[IO, CorrelationId, B] = Kleisli.liftF[IO, CorrelationId, B](x) | |
| def pure[B](x: B): Kleisli[IO, CorrelationId, B] = Kleisli.pure(x) | |
| def apply[B](f: CorrelationId => IO[B]): Kleisli[IO, CorrelationId, B] = Kleisli(f) | |
| def ask: Kleisli[IO, CorrelationId, CorrelationId] = Kleisli.ask[IO, CorrelationId] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment