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 10, 2017
1 parent 5a90b61 commit 0bb5503
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/src/main/scala/cats/data/Validated.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 0bb5503

Please sign in to comment.