Created
July 13, 2017 06:33
-
-
Save anonymous/bfbd497fbff130cfa267a29e8f94e9f5 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
//natural transformation from `cats.Id` to `fs2.Task` | |
val idToTask = new FunctionK[Id, Task] { | |
override def apply[A](fa: Id[A]): Task[A] = Task(fa)(Strategy.sequential) | |
} | |
implicit val logHandler: FSHandler[Log.Op, Task] = | |
(new PrintlnLogger).andThen(idToTask) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment