Skip to content

Instantly share code, notes, and snippets.

Created October 17, 2016 11:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/12315b162b3b311bf132dd844019630d to your computer and use it in GitHub Desktop.
Save anonymous/12315b162b3b311bf132dd844019630d to your computer and use it in GitHub Desktop.
the description for this gist
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