Last active
December 13, 2015 18:58
-
-
Save tpolecat/4958770 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
| implicit def mv[F] = new Monad[({ type λ[a] = Validation[F, a] })#λ] { | |
| def bind[A, B](fa: Validation[F, A])(f: A => Validation[F, B]): Validation[F, B] = fa.flatMap(f) | |
| def point[A](a: => A): Validation[F, A] = a.success | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment