packages feed

snaplet-redis 0.1.0.1 → 0.1.0.2

raw patch · 2 files changed

+19/−24 lines, 2 filesdep −textdep ~data-lensdep ~hedisdep ~snapPVP ok

version bump matches the API change (PVP)

Dependencies removed: text

Dependency ranges changed: data-lens, hedis, snap, transformers

API changes (from Hackage documentation)

Files

snaplet-redis.cabal view
@@ -1,8 +1,9 @@ Name:                snaplet-redis-Version:             0.1.0.1+Version:             0.1.0.2 Synopsis:            Redis support for Snap Framework-Description:         This package provides a snaplet which wraps Redis-                     interface as implemented by Hedis library. Inline+Description:         This package provides a snaplet which exposes+                     interface to Redis in-memory key-value storage as+                     implemented by Hedis library. Inline                      documentation contains usage examples. Homepage:            https://github.com/dzhus/snaplet-redis/ Bug-reports:         https://github.com/dzhus/snaplet-redis/issues/@@ -10,12 +11,12 @@ License-file:        LICENSE Author:              Dmitry Dzhus Maintainer:          dima@dzhus.org-Category:            Web+Category:            Web, Snap stability:           stable  Build-type:          Simple Cabal-version:       >=1.6-Tested-with:         GHC == 7.4.1+Tested-with:         GHC == 7.6.1  source-repository head   type:     git@@ -26,14 +27,12 @@   hs-source-dirs: src    Exposed-modules:   Snap.Snaplet.RedisDB-  +   Build-depends:     base                >= 4 && < 5,-    data-lens           >= 2.0.1 && < 2.1,-    data-lens-template  >= 2.1 && < 2.2,-    hedis               == 0.4.*,+    data-lens           >= 2.0.1 && < 2.11,+    data-lens-template  == 2.1.*,+    hedis               == 0.6.*,     mtl                 >= 2 && < 3,-    snap                == 0.8.*,-    text                == 0.11.*,-    transformers        == 0.2.*-  +    snap                == 0.9.*,+    transformers        == 0.3.*
src/Snap/Snaplet/RedisDB.hs view
@@ -7,9 +7,11 @@  -} -module Snap.Snaplet.RedisDB (RedisDB-                            , runRedisDB-                            , redisDBInit)+module Snap.Snaplet.RedisDB+    (RedisDB+    , runRedisDB+    , redisDBInit)+ where  import Prelude hiding ((.))@@ -18,7 +20,6 @@  import Data.Lens.Common import Data.Lens.Template-import Data.Text (Text)  import Database.Redis @@ -26,11 +27,6 @@   --------------------------------------------------------------------------------- | Description text used in redisDBInit as makeSnaplet argument.-description :: Text-description = "Redis snaplet."-------------------------------------------------------------------------------- -- | Snaplet's state data type data RedisDB = RedisDB     { _connection :: Connection -- ^ DB connection pool.@@ -61,9 +57,9 @@ -- >             d <- nestSnaplet "" database $ -- >                                 redisDBInit defaultConnectInfo -- >             return $ MyApp d-redisDBInit :: ConnectInfo -- ^ Information for connnecting to a Redis server. +redisDBInit :: ConnectInfo -- ^ Information for connnecting to a Redis server.             -> SnapletInit b RedisDB redisDBInit connInfo =-    makeSnaplet "snaplet-redis" description Nothing $ do+    makeSnaplet "snaplet-redis" "Redis snaplet." Nothing $ do       conn <- liftIO $ connect connInfo       return $ RedisDB conn