Created
December 11, 2019 08:49
-
-
Save lforite/2c0305a5b68fad2fd09fa37a353b9f75 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
| val context: String = "Kleisli, is that you ?" | |
| val kleisli: Kleisli[IO, String, String] = Kleisli.ask() | |
| val io: IO[String] = kleisli.run(context) | |
| io.unsafeRunSync() | |
| // returns string "Kleisli, is that you? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment