Skip to content

Instantly share code, notes, and snippets.

@lforite
Last active February 20, 2020 15:29
Show Gist options
  • Select an option

  • Save lforite/f7ea7df8b3ffc6bce52b7f4f3107ad01 to your computer and use it in GitHub Desktop.

Select an option

Save lforite/f7ea7df8b3ffc6bce52b7f4f3107ad01 to your computer and use it in GitHub Desktop.
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