I looks very good =). You could work with Kind ins...
# arrow
l
I looks very good =). You could work with Kind instead of IO and concretize it only in the main method, if you feel like keep playing with it.
🔝 3
s
I could do that... Should be fun. But I also wanted to be close to the original example in Scala
okay, just to make sure I'm on the right path....
fun <F> putStrLn(A: Async<F>, line: String): Kind<F, Unit> = A.async { println(line) }
is this how
putStrLn
would look like? something better than
Async
here? usage:
putStrLn(IO.async(), "Hello World!").fix().unsafeRunSync()
l
Yes, that's it 🙂
👍 1