You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[refined4s-cats] Add validateNelAs in refined4s.modules.cats.syntax to validate a value and return ValidatedNel
Version
0.6.0
Description
importrefined4s.*importrefined4s.types.all.*importrefined4s.modules.cats.syntax.*typeName=Name.TypeobjectNameextendsNewtype[NonEmptyString]
"Kevin".validateNelAs[Name]
// ValidatedNel[String, Name] = Valid(Name(NonEmptyString("Kevin")))"".validateNelAs[Name]
// ValidatedNel[String, Name] = Invalid(NonEmptyList("Failed to create Name: Invalid value: []. It has to be a non-empty String but got \"\"))
The text was updated successfully, but these errors were encountered:
Summary
[
refined4s-cats
] AddvalidateNelAs
inrefined4s.modules.cats.syntax
to validate a value and returnValidatedNel
Version
0.6.0
Description
The text was updated successfully, but these errors were encountered: