Skip to content

Commit

Permalink
Fix mdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
kubukoz committed Oct 22, 2023
1 parent 37420a3 commit df840e2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ object Email {
else Left("Email is not valid")

// highlight-start
implicit val provider = Refinement.drivenBy[EmailFormat](
implicit val provider: RefinementProvider[EmailFormat, String, Email] = Refinement.drivenBy[EmailFormat](
Email.apply, // Tells smithy4s how to create an Email (or get an error message) given a string
(e: Email) => e.value // Tells smithy4s how to get a string from an Email
)
Expand Down Expand Up @@ -158,7 +158,7 @@ object NonEmptyList {
if (values.size > 0) Right(new NonEmptyList(values))
else Left("List must not be empty.")

implicit def provider[A] = Refinement.drivenBy[NonEmptyListFormat](
implicit def provider[A]: RefinementProvider[NonEmptyListFormat, List[A], NonEmptyList[A]] = Refinement.drivenBy[NonEmptyListFormat](
NonEmptyList.apply[A],
(b: NonEmptyList[A]) => b.values
)
Expand Down

0 comments on commit df840e2

Please sign in to comment.