Skip to content

Commit

Permalink
use 'liftIO' for 'MonadRedis' instance
Browse files Browse the repository at this point in the history
  • Loading branch information
skykanin committed Nov 3, 2023
1 parent 58fbead commit 6ffe292
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Effectful/Redis.hs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ runRedis = evalStaticRep . Redis
----------------------------------------
-- Orphan instance

instance (Redis :> es) => R.MonadRedis (Eff es) where
instance (IOE :> es, Redis :> es) => R.MonadRedis (Eff es) where
liftRedis redis = do
Redis connection <- getStaticRep
unsafeEff_ $ R.runRedis connection redis
liftIO $ R.runRedis connection redis

0 comments on commit 6ffe292

Please sign in to comment.