From 0bb55031ca3ba4a099a684085380c13945c3be51 Mon Sep 17 00:00:00 2001 From: Edmund Noble Date: Wed, 10 May 2017 19:08:37 -0400 Subject: [PATCH] Add Validated.validNel --- core/src/main/scala/cats/data/Validated.scala | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/src/main/scala/cats/data/Validated.scala b/core/src/main/scala/cats/data/Validated.scala index 026434641a3..d57ffd1d5da 100644 --- a/core/src/main/scala/cats/data/Validated.scala +++ b/core/src/main/scala/cats/data/Validated.scala @@ -401,6 +401,8 @@ private[data] trait ValidatedFunctions { def valid[A, B](b: B): Validated[A, B] = Validated.Valid(b) + def validNel[A, B](b: B): ValidatedNel[A, B] = Validated.Valid(b) + /** * Evaluates the specified block, catching exceptions of the specified type and returning them on the invalid side of * the resulting `Validated`. Uncaught exceptions are propagated.