Created
October 17, 2016 11:48
-
-
Save anonymous/12315b162b3b311bf132dd844019630d 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
type ValidatedNel[E, A] = Validated[NonEmptyList[E], A] | |
//And an function for creating the Invalid value | |
def invalidNel[A, B](a: A): ValidatedNel[A, B] = Validated.Invalid(NonEmptyList(a)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment