packages feed

tmp-proc-redis 0.7.3.0 → 0.8.0.0

raw patch · 3 files changed

+14/−4 lines, 3 filesdep ~tmp-procPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: tmp-proc

API changes (from Hackage documentation)

+ System.TmpProc.Docker.Redis: addrHost :: HostIpAddress -> SvcURI
+ System.TmpProc.Docker.Redis: addrPort :: HostIpAddress -> Word16 -> SvcURI
+ System.TmpProc.Docker.Redis: containerPort :: Proc a => Word16
+ System.TmpProc.Docker.Redis: uriOfRootless :: Proc a => HostIpAddress -> Word16 -> SvcURI
+ System.TmpProc.Docker.Redis: uriOfRootlessWith :: Proc a => HostIpAddress -> [(Word16, Word16)] -> SvcURI

Files

ChangeLog.md view
@@ -2,6 +2,11 @@  `tmp-proc-redis` uses [PVP Versioning][1]. +## 0.8.0.0 -- 2026-10-18++* Extend the upper bound for tmp-proc to allow 0.8+* Add `uriOfRootlessWith` to `TmpRedis` for rootless docker support+ ## 0.7.3.0 -- 2026-06-22  * Update the lower bound on hedis
src/System/TmpProc/Docker/Redis.hs view
@@ -35,7 +35,6 @@  import Control.Exception (catch) import qualified Data.ByteString.Char8 as C8-import qualified Data.Text as Text import Database.Redis   ( ConnectTimeout   , Connection@@ -54,6 +53,8 @@   , Proc (..)   , ProcHandle (..)   , SvcURI+  , addrHost+  , addrPort   , only   , startupAll   , withTmpConn@@ -89,6 +90,10 @@   runArgs = []   ping = toPinged . flip withTmpConn (const $ pure ())   reset = clearKeys+  uriOfRootlessWith addr pairs =+    case lookup 6379 pairs of+      Just hp -> "redis://" <> addrPort addr hp <> "/"+      Nothing -> mkUri' addr   -- | Specifies how to connect to a tmp @redis@ service.@@ -113,7 +118,7 @@   mkUri' :: HostIpAddress -> SvcURI-mkUri' ip = "redis://" <> C8.pack (Text.unpack ip) <> "/"+mkUri' ip = "redis://" <> addrHost ip <> "/"   clearKeys :: ProcHandle TmpRedis -> IO ()
tmp-proc-redis.cabal view
@@ -1,6 +1,6 @@ cabal-version:      3.0 name:               tmp-proc-redis-version:            0.7.3.0+version:            0.8.0.0 synopsis:           Launch Redis in docker using tmp-proc description:   Demos how to use tmp-proc to run Redis in docker in a unittest.@@ -32,7 +32,7 @@     , bytestring  >=0.10.8   && <0.11 || >=0.11.3 && <0.13     , hedis       >=0.16 && <0.18     , text        >=1.2.3 && <2.2-    , tmp-proc    >=0.5.3  && <0.8+    , tmp-proc    >=0.5.3  && <0.9    default-language: Haskell2010   ghc-options:      -fno-ignore-asserts -Wall