Created
April 2, 2015 02:26
-
-
Save timperrett/c9e75f27396f5b3c7978 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
| import scalaz._, Scalaz._ | |
| import scalaz.concurrent.Task | |
| val a: String \/ Int = 1.right | |
| def f(in: Int): Task[Doulbe] = Task.now(in.toDouble) | |
| // scalaz.Unapply[scalaz.Traverse,scalaz.\/[String,Int]]{type M[X] = scalaz.\/[String,X]; type A = Int}#M[Double] | |
| a.traverseU(f).run |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment