From 8d53b5806f10d85d7cd6aea1113787e4e7887c85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Koz=C5=82owski?= Date: Sun, 29 Sep 2024 20:03:22 +0200 Subject: [PATCH] Add AnyVal --- project/Boilerplate.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/project/Boilerplate.scala b/project/Boilerplate.scala index 2f95f75a16..277a967cd6 100644 --- a/project/Boilerplate.scala +++ b/project/Boilerplate.scala @@ -647,12 +647,12 @@ object Boilerplate { - implicit def catsSyntaxFunction${arity}Apply[T, ${`A..N`}](f: $function): Function${arity}ApplyOps[T, ${`A..N`}] = new Function${arity}ApplyOps(f) |} | - |private[syntax] final class Function1ApplyOps[T, A0](private val f: Function1[A0, T]) extends Serializable { + |private[syntax] final class Function1ApplyOps[T, A0](private val f: Function1[A0, T]) extends AnyVal with Serializable { | def liftN[F[_]: Functor](a0: F[A0]): F[T] = Functor[F].map(a0)(f) | def parLiftN[F[_]: Functor](a0: F[A0]): F[T] = Functor[F].map(a0)(f) |} | - -private[syntax] final class Function${arity}ApplyOps[T, ${`A..N`}](private val f: $function) extends Serializable { + -private[syntax] final class Function${arity}ApplyOps[T, ${`A..N`}](private val f: $function) extends AnyVal with Serializable { - def liftN[F[_]: Functor: Semigroupal]($typedParams): F[T] = Semigroupal.map$arity(${`a..n`})(f) - def parLiftN[F[_]: Parallel]($typedParams): F[T] = Parallel.parMap$arity(${`a..n`})(f) -}