summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWillLangstroth <>2010-12-15 06:12:54 (GMT)
committerLuite Stegeman <luite@luite.com>2010-12-15 06:12:54 (GMT)
commit98bc72cdd21d81ed3e02a178bfd1cc8e5e997289 (patch)
treef1bd38c3c827fb85b362cf3eba5fa2d30c1afd47
parentd2e8665d1c6ec7f181cf9a31c844ce9d094e4437 (diff)
version 0.1.10.1.1
-rw-r--r--README.md15
-rw-r--r--redis-hs.cabal5
-rw-r--r--src/Database/Redis.hs2
-rw-r--r--src/Database/Redis/General.hs5
4 files changed, 16 insertions, 11 deletions
diff --git a/README.md b/README.md
index 623cefa..ae0b59c 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
# redis-hs
-A simple link to Redis in Haskell, emphasizing ease of use, readability of
-code, documentation and test coverage.
+A simple Redis driver in Haskell using Data.ByteString.UTF8 for consistent
+UTF8 handling.
## Install
@@ -9,7 +9,11 @@ code, documentation and test coverage.
## Use
-To test it out, try the following:
+Make sure to include
+
+ Database.Redis
+
+and try the following:
con <- connect localhost defaultPort
_ <- select con 0
@@ -22,5 +26,6 @@ If you need to see the details of the response, replace `unwrapReply` with
## Acknowledgements
-Much of the code in this library is inspired by the work of Anders Conbere and
-Alexander Bogdanov (author of the redis library on Hackage).
+Much of the code in this library is inspired by the work of Anders
+Conbere and Alexander Bogdanov (author of the [redis library on
+Hackage](http://hackage.haskell.org/package/redis)).
diff --git a/redis-hs.cabal b/redis-hs.cabal
index 6beffab..c2f55be 100644
--- a/redis-hs.cabal
+++ b/redis-hs.cabal
@@ -1,5 +1,5 @@
name: redis-hs
-version: 0.1.0
+version: 0.1.1
author: Will Langstroth <will@langstroth.com>
maintainer: Will Langstroth <will@langstroth.com>
license: MIT
@@ -39,13 +39,12 @@ library
Database.Redis.SortedSet,
Database.Redis.Hash,
Database.Redis.Transaction
- other-modules:
Database.Redis.Internal
build-depends:
base == 4.*,
bytestring >= 0.9,
- network == 2.2.1.*,
+ network >= 2.3,
utf8-string >= 0.3.5
ghc-options: -Wall
diff --git a/src/Database/Redis.hs b/src/Database/Redis.hs
index 6a93458..347eb69 100644
--- a/src/Database/Redis.hs
+++ b/src/Database/Redis.hs
@@ -7,6 +7,7 @@ module Database.Redis
, module Database.Redis.SortedSet
, module Database.Redis.Hash
, module Database.Redis.Transaction
+ , module Database.Redis.Internal
) where
import Database.Redis.Connection
@@ -17,3 +18,4 @@ import Database.Redis.Set
import Database.Redis.SortedSet
import Database.Redis.Hash
import Database.Redis.Transaction
+import Database.Redis.Internal
diff --git a/src/Database/Redis/General.hs b/src/Database/Redis/General.hs
index 9af3a6a..4da0a50 100644
--- a/src/Database/Redis/General.hs
+++ b/src/Database/Redis/General.hs
@@ -1,6 +1,5 @@
module Database.Redis.General
- ( RedisReply(..)
- , keyExists, keyExistsB
+ ( keyExists, keyExistsB
, keyDelete, keyDeleteB
, keyType, keyTypeB
, keys, keysB
@@ -16,11 +15,11 @@ module Database.Redis.General
, flushDB
, flushAll
, select
- , toUTF8
, ping
, unwrapReply
) where
+
import Data.Maybe
import System.IO