Permalink
Browse files

Renamed Validation.bind back to flatMap after chatting with Tony, so

that we can still use for-comprehensions.
  • Loading branch information...
1 parent ca1989d commit d1aabf31f8faa6fb6ef8dc172efdf68b945a5216 @nuttycom nuttycom committed Aug 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 core/src/main/scala/scalaz/Validation.scala
@@ -132,7 +132,7 @@ sealed trait Validation[+E, +A] {
}
/** Bind through the success of this validation. */
- def bind[EE >: E, B](f: A => Validation[EE, B]): Validation[EE, B] =
+ def flatMap[EE >: E, B](f: A => Validation[EE, B]): Validation[EE, B] =
this match {
case Success(a) => f(a)
case Failure(e) => Failure(e)

0 comments on commit d1aabf3

Please sign in to comment.