commit ghc-hedis for openSUSE:Factory

2017-05-06 Thread root
Hello community,

here is the log from the commit of package ghc-hedis for openSUSE:Factory 
checked in at 2017-05-06 18:28:43

Comparing /work/SRC/openSUSE:Factory/ghc-hedis (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-hedis.new (New)


Package is "ghc-hedis"

Sat May  6 18:28:43 2017 rev:6 rq:491473 version:0.9.8

Changes:

--- /work/SRC/openSUSE:Factory/ghc-hedis/ghc-hedis.changes  2017-02-22 
13:53:26.525106098 +0100
+++ /work/SRC/openSUSE:Factory/.ghc-hedis.new/ghc-hedis.changes 2017-05-06 
18:28:43.835023695 +0200
@@ -1,0 +2,5 @@
+Wed Apr 19 13:32:39 UTC 2017 - psim...@suse.com
+
+- Update to version 0.9.8 with cabal2obs.
+
+---

Old:

  hedis-0.9.7.tar.gz

New:

  hedis-0.9.8.tar.gz



Other differences:
--
++ ghc-hedis.spec ++
--- /var/tmp/diff_new_pack.0dMp8A/_old  2017-05-06 18:28:44.858879224 +0200
+++ /var/tmp/diff_new_pack.0dMp8A/_new  2017-05-06 18:28:44.862878659 +0200
@@ -19,7 +19,7 @@
 %global pkg_name hedis
 %bcond_with tests
 Name:   ghc-%{pkg_name}
-Version:0.9.7
+Version:0.9.8
 Release:0
 Summary:Client library for the Redis datastore: supports full command 
set, pipelining
 License:BSD-3-Clause

++ hedis-0.9.7.tar.gz -> hedis-0.9.8.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hedis-0.9.7/CHANGELOG new/hedis-0.9.8/CHANGELOG
--- old/hedis-0.9.7/CHANGELOG   2017-01-28 16:03:00.0 +0100
+++ new/hedis-0.9.8/CHANGELOG   2017-04-10 09:11:53.0 +0200
@@ -1,8 +1,13 @@
 # Changelog for Hedis
 
+## 0.9.8
+
+* Fix syntax errors from redis when using scanOpts to specify match
+  pattern or count options (see PR #88)
+
 ## 0.9.7
 
-Expose returnDecode method of RedisCtx (see issue #83)
+* Expose returnDecode method of RedisCtx (see issue #83)
 
 ## 0.9.2
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hedis-0.9.7/hedis.cabal new/hedis-0.9.8/hedis.cabal
--- old/hedis-0.9.7/hedis.cabal 2017-01-28 16:02:24.0 +0100
+++ new/hedis-0.9.8/hedis.cabal 2017-04-10 09:12:34.0 +0200
@@ -1,5 +1,5 @@
 name:   hedis
-version:0.9.7
+version:0.9.8
 synopsis:
 Client library for the Redis datastore: supports full command set,
 pipelining.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hedis-0.9.7/src/Database/Redis/ManualCommands.hs 
new/hedis-0.9.8/src/Database/Redis/ManualCommands.hs
--- old/hedis-0.9.7/src/Database/Redis/ManualCommands.hs2016-05-31 
19:29:19.0 +0200
+++ new/hedis-0.9.8/src/Database/Redis/ManualCommands.hs2017-04-10 
09:07:57.0 +0200
@@ -699,9 +699,9 @@
 addScanOpts cmd ScanOpts{..} =
 concat [cmd, match, count]
   where
-match = maybeToList scanMatch
-count = map encode $ maybeToList scanCount
-
+prepend x y = [x, y]
+match   = maybe [] (prepend "MATCH") scanMatch
+count   = maybe [] ((prepend "COUNT").encode) scanCount
 
 sscan
 :: (RedisCtx m f)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hedis-0.9.7/test/Test.hs new/hedis-0.9.8/test/Test.hs
--- old/hedis-0.9.7/test/Test.hs2016-08-07 13:21:06.0 +0200
+++ new/hedis-0.9.8/test/Test.hs2017-04-10 09:07:57.0 +0200
@@ -532,12 +532,16 @@
 testScans = testCase "scans" $ do
 set "key" "value"   >>=? Ok
 scan cursor0>>=? (cursor0, ["key"])
+scanOpts cursor0 sOpts1 >>=? (cursor0, ["key"])
+scanOpts cursor0 sOpts2 >>=? (cursor0, [])
 sadd "set" ["1"]>>=? 1
 sscan "set" cursor0 >>=? (cursor0, ["1"])
 hset "hash" "k" "v" >>=? True
 hscan "hash" cursor0>>=? (cursor0, [("k", "v")])
 zadd "zset" [(42, "2")] >>=? 1
 zscan "zset" cursor0>>=? (cursor0, [("2", 42)])
+where sOpts1 = defaultScanOpts { scanMatch = Just "k*" }
+  sOpts2 = defaultScanOpts { scanMatch = Just "not*"}
 
 testZrangelex ::Test
 testZrangelex = testCase "zrangebylex" $ do




commit ghc-hedis for openSUSE:Factory

2017-02-22 Thread root
Hello community,

here is the log from the commit of package ghc-hedis for openSUSE:Factory 
checked in at 2017-02-22 13:53:25

Comparing /work/SRC/openSUSE:Factory/ghc-hedis (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-hedis.new (New)


Package is "ghc-hedis"

Changes:

--- /work/SRC/openSUSE:Factory/ghc-hedis/ghc-hedis.changes  2017-01-12 
15:49:40.559707601 +0100
+++ /work/SRC/openSUSE:Factory/.ghc-hedis.new/ghc-hedis.changes 2017-02-22 
13:53:26.525106098 +0100
@@ -1,0 +2,5 @@
+Mon Jan 30 09:35:03 UTC 2017 - psim...@suse.com
+
+- Update to version 0.9.7 with cabal2obs.
+
+---

Old:

  hedis-0.9.5.tar.gz

New:

  hedis-0.9.7.tar.gz



Other differences:
--
++ ghc-hedis.spec ++
--- /var/tmp/diff_new_pack.SzWoKX/_old  2017-02-22 13:53:27.005037803 +0100
+++ /var/tmp/diff_new_pack.SzWoKX/_new  2017-02-22 13:53:27.005037803 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-hedis
 #
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -19,7 +19,7 @@
 %global pkg_name hedis
 %bcond_with tests
 Name:   ghc-%{pkg_name}
-Version:0.9.5
+Version:0.9.7
 Release:0
 Summary:Client library for the Redis datastore: supports full command 
set, pipelining
 License:BSD-3-Clause

++ hedis-0.9.5.tar.gz -> hedis-0.9.7.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hedis-0.9.5/CHANGELOG new/hedis-0.9.7/CHANGELOG
--- old/hedis-0.9.5/CHANGELOG   2016-08-07 13:27:59.0 +0200
+++ new/hedis-0.9.7/CHANGELOG   2017-01-28 16:03:00.0 +0100
@@ -1,5 +1,9 @@
 # Changelog for Hedis
 
+## 0.9.7
+
+Expose returnDecode method of RedisCtx (see issue #83)
+
 ## 0.9.2
 
 * Added multithreaded pub/sub message processing (see PR #77)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hedis-0.9.5/hedis.cabal new/hedis-0.9.7/hedis.cabal
--- old/hedis-0.9.5/hedis.cabal 2016-12-08 18:40:40.0 +0100
+++ new/hedis-0.9.7/hedis.cabal 2017-01-28 16:02:24.0 +0100
@@ -1,5 +1,5 @@
 name:   hedis
-version:0.9.5
+version:0.9.7
 synopsis:
 Client library for the Redis datastore: supports full command set,
 pipelining.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hedis-0.9.5/src/Database/Redis/Commands.hs 
new/hedis-0.9.7/src/Database/Redis/Commands.hs
--- old/hedis-0.9.5/src/Database/Redis/Commands.hs  2016-10-05 
22:14:41.0 +0200
+++ new/hedis-0.9.7/src/Database/Redis/Commands.hs  2017-01-25 
22:06:21.0 +0100
@@ -213,7 +213,7 @@
 mset, -- |Set multiple keys to multiple values 
(). Since Redis 1.0.1
 msetnx, -- |Set multiple keys to multiple values, only if none of the keys 
exist (). Since Redis 1.0.1
 psetex, -- |Set the value and expiration in milliseconds of a key 
(). Since Redis 2.6.0
-Condition,
+Condition(..),
 SetOpts(..),
 set, -- |Set the string value of a key (). The 
Redis command @SET@ is split up into 'set', 'setOpts'. Since Redis 1.0.0
 setOpts, -- |Set the string value of a key (). 
The Redis command @SET@ is split up into 'set', 'setOpts'. Since Redis 1.0.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hedis-0.9.5/src/Database/Redis/Core.hs 
new/hedis-0.9.7/src/Database/Redis/Core.hs
--- old/hedis-0.9.5/src/Database/Redis/Core.hs  2016-10-05 22:14:41.0 
+0200
+++ new/hedis-0.9.7/src/Database/Redis/Core.hs  2017-01-28 15:32:38.0 
+0100
@@ -41,7 +41,7 @@
 data RedisEnv = Env { envConn :: PP.Connection, envLastReply :: IORef Reply }
 
 -- |This class captures the following behaviour: In a context @m@, a command
---  will return it's result wrapped in a \"container\" of type @f@.
+--  will return its result wrapped in a \"container\" of type @f@.
 --
 --  Please refer to the Command Type Signatures section of this page for more
 --  information.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hedis-0.9.5/src/Database/Redis.hs 
new/hedis-0.9.7/src/Database/Redis.hs
--- old/hedis-0.9.5/src/Database/Redis.hs   2016-10-05 22:14:41.0 
+0200
+++ new/hedis-0.9.7/src/Database/Redis.hs   2017-01-28 16:01:07.0 
+0100
@@ -139,7 +139,7

commit ghc-hedis for openSUSE:Factory

2016-11-10 Thread h_root
Hello community,

here is the log from the commit of package ghc-hedis for openSUSE:Factory 
checked in at 2016-11-10 13:29:49

Comparing /work/SRC/openSUSE:Factory/ghc-hedis (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-hedis.new (New)


Package is "ghc-hedis"

Changes:

--- /work/SRC/openSUSE:Factory/ghc-hedis/ghc-hedis.changes  2016-11-03 
11:13:52.0 +0100
+++ /work/SRC/openSUSE:Factory/.ghc-hedis.new/ghc-hedis.changes 2016-11-10 
13:29:51.0 +0100
@@ -1,0 +2,5 @@
+Tue Oct 11 08:49:38 UTC 2016 - psim...@suse.com
+
+- Update to version 0.9.4 with cabal2obs.
+
+---

Old:

  hedis-0.9.3.tar.gz

New:

  hedis-0.9.4.tar.gz



Other differences:
--
++ ghc-hedis.spec ++
--- /var/tmp/diff_new_pack.3PqdSB/_old  2016-11-10 13:29:52.0 +0100
+++ /var/tmp/diff_new_pack.3PqdSB/_new  2016-11-10 13:29:52.0 +0100
@@ -19,7 +19,7 @@
 %global pkg_name hedis
 %bcond_with tests
 Name:   ghc-%{pkg_name}
-Version:0.9.3
+Version:0.9.4
 Release:0
 Summary:Client library for the Redis datastore: supports full command 
set, pipelining
 License:BSD-3-Clause

++ hedis-0.9.3.tar.gz -> hedis-0.9.4.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hedis-0.9.3/hedis.cabal new/hedis-0.9.4/hedis.cabal
--- old/hedis-0.9.3/hedis.cabal 2016-08-07 14:02:17.0 +0200
+++ new/hedis-0.9.4/hedis.cabal 2016-10-05 22:15:07.0 +0200
@@ -1,5 +1,5 @@
 name:   hedis
-version:0.9.3
+version:0.9.4
 synopsis:
 Client library for the Redis datastore: supports full command set,
 pipelining.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hedis-0.9.3/src/Database/Redis/Commands.hs 
new/hedis-0.9.4/src/Database/Redis/Commands.hs
--- old/hedis-0.9.3/src/Database/Redis/Commands.hs  2016-05-31 
19:29:19.0 +0200
+++ new/hedis-0.9.4/src/Database/Redis/Commands.hs  2016-10-05 
22:14:41.0 +0200
@@ -537,11 +537,6 @@
 -> m (f Integer)
 sinterstore destination key = sendRequest (["SINTERSTORE"] ++ [encode 
destination] ++ map encode key )
 
-ping
-:: (RedisCtx m f)
-=> m (f Status)
-ping  = sendRequest (["PING"] )
-
 hvals
 :: (RedisCtx m f)
 => ByteString -- ^ key
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hedis-0.9.3/src/Database/Redis/Core.hs 
new/hedis-0.9.4/src/Database/Redis/Core.hs
--- old/hedis-0.9.3/src/Database/Redis/Core.hs  2016-08-07 13:21:06.0 
+0200
+++ new/hedis-0.9.4/src/Database/Redis/Core.hs  2016-10-05 22:14:41.0 
+0200
@@ -2,12 +2,12 @@
 MultiParamTypeClasses, FunctionalDependencies, FlexibleInstances, CPP #-}
 
 module Database.Redis.Core (
-Connection(..), connect,
+Connection(..), connect, checkedConnect,
 ConnectInfo(..), defaultConnectInfo,
 Redis(), runRedis, unRedis, reRedis,
 RedisCtx(..), MonadRedis(..),
 send, recv, sendRequest,
-auth, select
+auth, select, ping
 ) where
 
 import Prelude
@@ -189,8 +189,9 @@
 , connectMaxIdleTime= 30
 }
 
--- |Opens a 'Connection' to a Redis server designated by the given
---  'ConnectInfo'.
+-- |Constructs a 'Connection' pool to a Redis server designated by the 
+--  given 'ConnectInfo'. The first connection is not actually established
+--  until the first call to the server.
 connect :: ConnectInfo -> IO Connection
 connect ConnInfo{..} = Conn <$>
 createPool create destroy 1 connectMaxIdleTime connectMaxConnections
@@ -208,6 +209,16 @@
 
 destroy = PP.disconnect
 
+-- |Constructs a 'Connection' pool to a Redis server designated by the
+--  given 'ConnectInfo', then tests if the server is actually there. 
+--  Throws an exception if the connection to the Redis server can't be
+--  established.
+checkedConnect :: ConnectInfo -> IO Connection
+checkedConnect connInfo = do
+conn <- connect connInfo
+runRedis conn $ void ping
+return conn
+
 -- The AUTH command. It has to be here because it is used in 'connect'.
 auth
 :: B.ByteString -- ^ password
@@ -220,3 +231,9 @@
 => Integer -- ^ index
 -> m (f Status)
 select ix = sendRequest ["SELECT", encode ix]
+
+-- The PING command. Used in 'checkedConnect'.
+ping
+:: (RedisCtx m f)
+=> m (f Status)
+ping  = sendRequest (["PING"] )
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hedis-0.9.3/src/Database/Redis.hs 
new/hedis-0.9.4/src/Database/Redis.hs
--- old/hedis-0.9.3/src/Database/Redis.hs   2016-05-05 15:33:10.0 
+0200
+++ new/hedis-0.9.4/src/Databa

commit ghc-hedis for openSUSE:Factory

2016-11-03 Thread h_root
Hello community,

here is the log from the commit of package ghc-hedis for openSUSE:Factory 
checked in at 2016-11-03 11:13:50

Comparing /work/SRC/openSUSE:Factory/ghc-hedis (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-hedis.new (New)


Package is "ghc-hedis"

Changes:

--- /work/SRC/openSUSE:Factory/ghc-hedis/ghc-hedis.changes  2016-09-26 
12:35:49.0 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-hedis.new/ghc-hedis.changes 2016-11-03 
11:13:52.0 +0100
@@ -1,0 +2,5 @@
+Thu Sep 15 06:34:41 UTC 2016 - psim...@suse.com
+
+- Update to version 0.9.3 revision 0 with cabal2obs.
+
+---

Old:

  hedis-0.6.10.tar.gz

New:

  hedis-0.9.3.tar.gz



Other differences:
--
++ ghc-hedis.spec ++
--- /var/tmp/diff_new_pack.92KWiI/_old  2016-11-03 11:13:54.0 +0100
+++ /var/tmp/diff_new_pack.92KWiI/_new  2016-11-03 11:13:54.0 +0100
@@ -19,32 +19,35 @@
 %global pkg_name hedis
 %bcond_with tests
 Name:   ghc-%{pkg_name}
-Version:0.6.10
+Version:0.9.3
 Release:0
 Summary:Client library for the Redis datastore: supports full command 
set, pipelining
 License:BSD-3-Clause
-Group:  System/Libraries
+Group:  Development/Languages/Other
 Url:https://hackage.haskell.org/package/%{pkg_name}
 Source0:
https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
-# Begin cabal-rpm deps:
-BuildRequires:  ghc-BoundedChan-devel
 BuildRequires:  ghc-Cabal-devel
-BuildRequires:  ghc-attoparsec-devel
+BuildRequires:  ghc-async-devel
 BuildRequires:  ghc-bytestring-devel
 BuildRequires:  ghc-bytestring-lexing-devel
+BuildRequires:  ghc-deepseq-devel
 BuildRequires:  ghc-mtl-devel
 BuildRequires:  ghc-network-devel
 BuildRequires:  ghc-resource-pool-devel
 BuildRequires:  ghc-rpm-macros
+BuildRequires:  ghc-scanner-devel
+BuildRequires:  ghc-stm-devel
+BuildRequires:  ghc-text-devel
 BuildRequires:  ghc-time-devel
+BuildRequires:  ghc-unordered-containers-devel
 BuildRequires:  ghc-vector-devel
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 %if %{with tests}
 BuildRequires:  ghc-HUnit-devel
+BuildRequires:  ghc-slave-thread-devel
 BuildRequires:  ghc-test-framework-devel
 BuildRequires:  ghc-test-framework-hunit-devel
 %endif
-# End cabal-rpm deps
 
 %description
 Redis is an open source, advanced key-value store. It is often referred to as a
@@ -88,20 +91,14 @@
 %prep
 %setup -q -n %{pkg_name}-%{version}
 
-
 %build
 %ghc_lib_build
 
-
 %install
 %ghc_lib_install
 
-
 %check
-%if %{with tests}
-%{cabal} test
-%endif
-
+%cabal_test
 
 %post devel
 %ghc_pkg_recache

++ hedis-0.6.10.tar.gz -> hedis-0.9.3.tar.gz ++
 2695 lines of diff (skipped)




commit ghc-hedis for openSUSE:Factory

2016-09-26 Thread h_root
Hello community,

here is the log from the commit of package ghc-hedis for openSUSE:Factory 
checked in at 2016-09-26 12:35:42

Comparing /work/SRC/openSUSE:Factory/ghc-hedis (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-hedis.new (New)


Package is "ghc-hedis"

Changes:

New Changes file:

--- /dev/null   2016-09-15 12:42:18.240042505 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-hedis.new/ghc-hedis.changes 2016-09-26 
12:35:49.0 +0200
@@ -0,0 +1,5 @@
+---
+Sun Jul 10 16:59:02 UTC 2016 - psim...@suse.com
+
+- Update to version 0.6.10 revision 0 with cabal2obs.
+

New:

  ghc-hedis.changes
  ghc-hedis.spec
  hedis-0.6.10.tar.gz



Other differences:
--
++ ghc-hedis.spec ++
#
# spec file for package ghc-hedis
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


%global pkg_name hedis
%bcond_with tests
Name:   ghc-%{pkg_name}
Version:0.6.10
Release:0
Summary:Client library for the Redis datastore: supports full command 
set, pipelining
License:BSD-3-Clause
Group:  System/Libraries
Url:https://hackage.haskell.org/package/%{pkg_name}
Source0:
https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
# Begin cabal-rpm deps:
BuildRequires:  ghc-BoundedChan-devel
BuildRequires:  ghc-Cabal-devel
BuildRequires:  ghc-attoparsec-devel
BuildRequires:  ghc-bytestring-devel
BuildRequires:  ghc-bytestring-lexing-devel
BuildRequires:  ghc-mtl-devel
BuildRequires:  ghc-network-devel
BuildRequires:  ghc-resource-pool-devel
BuildRequires:  ghc-rpm-macros
BuildRequires:  ghc-time-devel
BuildRequires:  ghc-vector-devel
BuildRoot:  %{_tmppath}/%{name}-%{version}-build
%if %{with tests}
BuildRequires:  ghc-HUnit-devel
BuildRequires:  ghc-test-framework-devel
BuildRequires:  ghc-test-framework-hunit-devel
%endif
# End cabal-rpm deps

%description
Redis is an open source, advanced key-value store. It is often referred to as a
data structure server since keys can contain strings, hashes, lists, sets and
sorted sets. This library is a Haskell client for the Redis datastore.
Compared to other Haskell client libraries it has some advantages:

[Complete Redis 2.6 command set:] All Redis commands
() are available as haskell functions, except for the
MONITOR and SYNC commands. Additionally, a low-level API is exposed that makes
it easy for the library user to implement further commands, such as new
commands from an experimental Redis version.

[Automatic Optimal Pipelining:] Commands are pipelined
() as much as possible without any work by
the user. See  for a
technical explanation of automatic optimal pipelining.

[Enforced Pub/Sub semantics:] When subscribed to the Redis Pub/Sub server
(), clients are not allowed to issue commands
other than subscribing to or unsubscribing from channels. This library uses the
type system to enforce the correct behavior.

[Connect via TCP or Unix Domain Socket:] TCP sockets are the default way to
connect to a Redis server. For connections to a server on the same machine,
Unix domain sockets offer higher performance than the standard TCP connection.

For detailed documentation, see the "Database.Redis" module. .

%package devel
Summary:Haskell %{pkg_name} library development files
Group:  Development/Libraries/Other
Requires:   %{name} = %{version}-%{release}
Requires:   ghc-compiler = %{ghc_version}
Requires(post): ghc-compiler = %{ghc_version}
Requires(postun): ghc-compiler = %{ghc_version}

%description devel
This package provides the Haskell %{pkg_name} library development files.

%prep
%setup -q -n %{pkg_name}-%{version}


%build
%ghc_lib_build


%install
%ghc_lib_install


%check
%if %{with tests}
%{cabal} test
%endif


%post devel
%ghc_pkg_recache

%postun devel
%ghc_pkg_recache

%files -f %{name}.files
%defattr(-,root,root,-)
%doc LICENSE

%files devel -f %{name}-devel.files
%defattr(-,root,roo