From 8d31a63fbd56ab6cd20ebe2176dfd773763b4741 Mon Sep 17 00:00:00 2001 From: Luka Jacobowitz Date: Mon, 20 Aug 2018 20:41:37 +0200 Subject: [PATCH] Small tweak --- core/src/main/scala/cats/data/EitherT.scala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/main/scala/cats/data/EitherT.scala b/core/src/main/scala/cats/data/EitherT.scala index 7c5d6937b4e..7dc39d170a2 100644 --- a/core/src/main/scala/cats/data/EitherT.scala +++ b/core/src/main/scala/cats/data/EitherT.scala @@ -205,7 +205,8 @@ final case class EitherT[F[_], A, B](value: F[Either[A, B]]) { def toValidatedNel(implicit F: Functor[F]): F[ValidatedNel[A, B]] = F.map(value)(_.toValidatedNel) - def toValidatedNec(implicit F: Functor[F]): F[ValidatedNec[A, B]] = ??? + def toValidatedNec(implicit F: Functor[F]): F[ValidatedNec[A, B]] = + F.map(value)(_.toValidatedNec) /** Run this value as a `[[Validated]]` against the function and convert it back to an `[[EitherT]]`. *