From 8748844360c887450d7858833dd561c3aeba801f Mon Sep 17 00:00:00 2001 From: Andy Scott Date: Tue, 27 Jun 2017 08:17:59 -0700 Subject: [PATCH] Add EitherNel type alias for Either[NonEmptyList[E], A] --- core/src/main/scala/cats/data/package.scala | 1 + 1 file changed, 1 insertion(+) diff --git a/core/src/main/scala/cats/data/package.scala b/core/src/main/scala/cats/data/package.scala index f3a9ec9c5d..0ad5e3740e 100644 --- a/core/src/main/scala/cats/data/package.scala +++ b/core/src/main/scala/cats/data/package.scala @@ -4,6 +4,7 @@ package object data { type NonEmptyStream[A] = OneAnd[Stream, A] type ValidatedNel[+E, +A] = Validated[NonEmptyList[E], A] type IorNel[+B, +A] = Ior[NonEmptyList[B], A] + type EitherNel[+E, +A] = Either[NonEmptyList[E], A] def NonEmptyStream[A](head: A, tail: Stream[A] = Stream.empty): NonEmptyStream[A] = OneAnd(head, tail)