Skip to content

Commit 92f3a4a

Browse files
author
Michael Mienko
committed
Functor over Applicative
1 parent 2c0984f commit 92f3a4a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/effects/src/main/scala/dev/profunktor/redis4cats/extensions/luaScripting.scala

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ package dev.profunktor.redis4cats.extensions
1818

1919
import cats.effect.kernel.{ Resource, Sync }
2020
import cats.syntax.all._
21-
import cats.{ Applicative, ApplicativeThrow }
21+
import cats.{ ApplicativeThrow, Functor }
2222
import dev.profunktor.redis4cats.algebra.Scripting
2323
import dev.profunktor.redis4cats.effects.ScriptOutputType
2424
import io.lettuce.core.RedisNoScriptException
@@ -29,7 +29,7 @@ object luaScripting {
2929

3030
object LuaScript {
3131

32-
def make[F[_]: Applicative](redis: Scripting[F, _, _])(contents: String): F[LuaScript] =
32+
def make[F[_]: Functor](redis: Scripting[F, _, _])(contents: String): F[LuaScript] =
3333
redis.digest(contents).map(sha => LuaScript(contents, sha))
3434

3535
/** Helper to load a lua script from resources/lua/{resourceName}. The path to the lua scripts can be configured.

0 commit comments

Comments
 (0)