Skip to content

Commit

Permalink
Add Validated.validNel
Browse files Browse the repository at this point in the history
  • Loading branch information
edmundnoble committed May 12, 2017
1 parent 9f98924 commit 0ffd7aa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/src/main/scala/cats/data/Validated.scala
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,7 @@ 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)

def catchNonFatal[A](f: => A): Validated[Throwable, A] =
try {
Expand Down

0 comments on commit 0ffd7aa

Please sign in to comment.