Skip to content

Instantly share code, notes, and snippets.

@debasishg
Created December 1, 2010 09:03
Show Gist options
  • Save debasishg/723202 to your computer and use it in GitHub Desktop.
Save debasishg/723202 to your computer and use it in GitHub Desktop.
sealed trait Validation[+E, +A] {
//..
}
final case class Success[E, A](a: A) extends Validation[E, A]
final case class Failure[E, A](e: E) extends Validation[E, A]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment