Skip to content

Commit

Permalink
Add EitherNel type alias for Either[NonEmptyList[E], A] (#1746)
Browse files Browse the repository at this point in the history
  • Loading branch information
andyscott authored and kailuowang committed Jun 27, 2017
1 parent 605e9b5 commit bbc97b8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/src/main/scala/cats/data/package.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit bbc97b8

Please sign in to comment.