From 9a5d4ffcfb9fde43579884368111a501b1e7be21 Mon Sep 17 00:00:00 2001 From: Daniel Urban Date: Fri, 6 Oct 2017 19:07:26 +0200 Subject: [PATCH] Add deprecated overload of NonEmptyList#concat --- core/src/main/scala/cats/data/NonEmptyList.scala | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/src/main/scala/cats/data/NonEmptyList.scala b/core/src/main/scala/cats/data/NonEmptyList.scala index a12cd68de3..946729b011 100644 --- a/core/src/main/scala/cats/data/NonEmptyList.scala +++ b/core/src/main/scala/cats/data/NonEmptyList.scala @@ -80,6 +80,10 @@ final case class NonEmptyList[+A](head: A, tail: List[A]) { def concat[AA >: A](other: List[AA]): NonEmptyList[AA] = NonEmptyList(head, tail ::: other) + @deprecated("Use concatNel", since = "1.0.0-RC1") + def concat[AA >: A](other: NonEmptyList[AA]): NonEmptyList[AA] = + concatNel(other) + /** * Append another NonEmptyList */