commit ghc-persistent for openSUSE:Factory

2020-08-28 Thread root
Hello community,

here is the log from the commit of package ghc-persistent for openSUSE:Factory 
checked in at 2020-08-28 21:36:09

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


Package is "ghc-persistent"

Fri Aug 28 21:36:09 2020 rev:21 rq:829380 version:2.10.5.2

Changes:

--- /work/SRC/openSUSE:Factory/ghc-persistent/ghc-persistent.changes
2020-08-18 12:24:49.751817029 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-persistent.new.3399/ghc-persistent.changes  
2020-08-28 21:36:12.192747257 +0200
@@ -1,0 +2,5 @@
+Tue Aug 18 10:45:42 UTC 2020 - Peter Simons 
+
+- Replace %setup -q with the more modern %autosetup macro.
+
+---



Other differences:
--
++ ghc-persistent.spec ++
--- /var/tmp/diff_new_pack.ZSVMeX/_old  2020-08-28 21:36:12.832747560 +0200
+++ /var/tmp/diff_new_pack.ZSVMeX/_new  2020-08-28 21:36:12.832747560 +0200
@@ -70,7 +70,7 @@
 This package provides the Haskell %{pkg_name} library development files.
 
 %prep
-%setup -q -n %{pkg_name}-%{version}
+%autosetup -n %{pkg_name}-%{version}
 
 %build
 %ghc_lib_build




commit ghc-persistent for openSUSE:Factory

2020-08-18 Thread root
Hello community,

here is the log from the commit of package ghc-persistent for openSUSE:Factory 
checked in at 2020-08-18 12:24:47

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


Package is "ghc-persistent"

Tue Aug 18 12:24:47 2020 rev:20 rq:825801 version:2.10.5.2

Changes:

--- /work/SRC/openSUSE:Factory/ghc-persistent/ghc-persistent.changes
2020-06-19 17:17:04.430828940 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-persistent.new.3399/ghc-persistent.changes  
2020-08-18 12:24:49.751817029 +0200
@@ -1,0 +2,6 @@
+Tue Jul 28 15:45:37 UTC 2020 - Michel Normand 
+
+- Add _constraints min 4GB disk space for few arches
+  aarch64 ppc64 ppc64le
+
+---

New:

  _constraints



Other differences:
--
++ _constraints ++

  

  aarch64
  ppc64
  ppc64le


  
4
  

  




commit ghc-persistent for openSUSE:Factory

2020-06-19 Thread root
Hello community,

here is the log from the commit of package ghc-persistent for openSUSE:Factory 
checked in at 2020-06-19 17:17:02

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


Package is "ghc-persistent"

Fri Jun 19 17:17:02 2020 rev:19 rq:815152 version:2.10.5.2

Changes:

--- /work/SRC/openSUSE:Factory/ghc-persistent/ghc-persistent.changes
2020-03-09 14:16:42.578638142 +0100
+++ /work/SRC/openSUSE:Factory/.ghc-persistent.new.3606/ghc-persistent.changes  
2020-06-19 17:17:04.430828940 +0200
@@ -2 +2 @@
-Thu Feb 27 14:18:05 UTC 2020 - psim...@suse.com
+Tue Jun  9 09:26:36 UTC 2020 - psim...@suse.com
@@ -4,2 +4 @@
-- Update persistent to version 2.10.5.2.
-  ## 2.10.5.2
+- Add persistent at version 2.10.5.2.
@@ -7,194 +5,0 @@
-  * [#1041](https://github.com/yesodweb/persistent/pull/1041)
-* Explicit foreign keys can now reference tables with custom sql name
-* Add qualified names to the stock classes list.
-

-Fri Feb  7 08:04:19 UTC 2020 - psim...@suse.com
-
-- Update persistent to version 2.10.5.1.
-  ## 2.10.5.1
-
-  * [#1024](https://github.com/yesodweb/persistent/pull/1024)
-  * Add the ability to do documentation comments in entity definition 
syntax. Unfortunately, TemplateHaskell cannot add documentation comments, so 
this can't be used to add Haddocks to entities.
-  * Add Haddock explainers for some of the supported entity syntax in 
`Database.Persist.Quasi`
-

-Wed Jan 29 03:01:47 UTC 2020 - psim...@suse.com
-
-- Update persistent to version 2.10.5.
-  ## 2.10.5
-
-  * Add the `EntityWithPrefix` type to allow users to specify a custom prefix 
for raw SQL queries. [#1018](https://github.com/yesodweb/persistent/pull/1018)
-  * Added Acquire based API to `Database.Persist.Sql` for working with
-connections/pools in monads which aren't MonadUnliftIO. 
[#984](https://github.com/yesodweb/persistent/pull/984)
-

-Fri Nov  8 16:14:26 UTC 2019 - Peter Simons 
-
-- Drop obsolete group attributes.
-

-Thu Oct 31 15:58:04 UTC 2019 - psim...@suse.com
-
-- Update persistent to version 2.10.4.
-  ## 2.10.4
-
-  * Log exceptions when closing a connection fails. See point 1 in [yesod 
#1635](https://github.com/yesodweb/yesod/issues/1635#issuecomment-547300856). 
[#978](https://github.com/yesodweb/persistent/pull/978)
-

-Tue Oct 29 07:32:13 UTC 2019 - psim...@suse.com
-
-- Update persistent to version 2.10.3.
-  ## 2.10.3
-
-  * Added support for GHC 8.8 about MonadFail changes 
[#976](https://github.com/yesodweb/persistent/pull/976)
-

-Thu Oct 24 02:03:00 UTC 2019 - psim...@suse.com
-
-- Update persistent to version 2.10.2.
-  ## 2.10.2
-
-  * Added `runMigrationQuiet` and `runMigrationUnsafeQuiet` to 
`Database.Persist.Sql.Migration` as safer alternatives to `runMigrationSilent`. 
[#971](https://github.com/yesodweb/persistent/pull/971)
-This functions as workaround/fix for: 
[#966](https://github.com/yesodweb/persistent/issues/966), 
[#948](https://github.com/yesodweb/persistent/issues/948), 
[#640](https://github.com/yesodweb/persistent/issues/640), and 
[#474](https://github.com/yesodweb/persistent/issues/474)
-  * Added RawSql instances for 9, 10, 11 and 12-column results. 
[#961](https://github.com/yesodweb/persistent/pull/961)
-

-Fri Aug  9 02:02:30 UTC 2019 - psim...@suse.com
-
-- Update persistent to version 2.10.1.
-  ## 2.10.1
-
-  * Added `constraint=` attribute to allow users to specify foreign reference 
constraint names.
-

-Thu Apr 18 02:03:32 UTC 2019 - psim...@suse.com
-
-- Update persistent to version 2.10.0.
-  ## 2.10.0
-
-  * Added two type classes `OnlyOneUniqueKey` and `AtLeastOneUniqueKey`. These 
classes are used as constraints on functions that expect a certain amount of 
unique keys. They are defined automatically as part of the 
`persistent-template`'s generation. 
[#885](https://github.com/yesodweb/persistent/pull/885)
-  * Add the `entityComments` field to the `EntityDef` datatype, and 
`fieldComments` fields to the `FieldDef` datatype. The QuasiQuoter does not 
currently know how to add documentation comments to these types, but it can be 
expanded later. [#865](https://github.com/yesodweb/persistent/pull/865)
-  * Expose the `SqlReadT` and `SqlWriteT` constructors. 
[#887](https://gith

commit ghc-persistent for openSUSE:Factory

2020-03-09 Thread root
Hello community,

here is the log from the commit of package ghc-persistent for openSUSE:Factory 
checked in at 2020-03-09 14:16:36

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


Package is "ghc-persistent"

Mon Mar  9 14:16:36 2020 rev:18 rq:780028 version:2.10.5.2

Changes:

--- /work/SRC/openSUSE:Factory/ghc-persistent/ghc-persistent.changes
2019-12-27 13:56:14.860741776 +0100
+++ /work/SRC/openSUSE:Factory/.ghc-persistent.new.26092/ghc-persistent.changes 
2020-03-09 14:16:42.578638142 +0100
@@ -1,0 +2,30 @@
+Thu Feb 27 14:18:05 UTC 2020 - psim...@suse.com
+
+- Update persistent to version 2.10.5.2.
+  ## 2.10.5.2
+
+  * [#1041](https://github.com/yesodweb/persistent/pull/1041)
+* Explicit foreign keys can now reference tables with custom sql name
+* Add qualified names to the stock classes list.
+
+---
+Fri Feb  7 08:04:19 UTC 2020 - psim...@suse.com
+
+- Update persistent to version 2.10.5.1.
+  ## 2.10.5.1
+
+  * [#1024](https://github.com/yesodweb/persistent/pull/1024)
+  * Add the ability to do documentation comments in entity definition 
syntax. Unfortunately, TemplateHaskell cannot add documentation comments, so 
this can't be used to add Haddocks to entities.
+  * Add Haddock explainers for some of the supported entity syntax in 
`Database.Persist.Quasi`
+
+---
+Wed Jan 29 03:01:47 UTC 2020 - psim...@suse.com
+
+- Update persistent to version 2.10.5.
+  ## 2.10.5
+
+  * Add the `EntityWithPrefix` type to allow users to specify a custom prefix 
for raw SQL queries. [#1018](https://github.com/yesodweb/persistent/pull/1018)
+  * Added Acquire based API to `Database.Persist.Sql` for working with
+connections/pools in monads which aren't MonadUnliftIO. 
[#984](https://github.com/yesodweb/persistent/pull/984)
+
+---

Old:

  persistent-2.10.4.tar.gz

New:

  persistent-2.10.5.2.tar.gz



Other differences:
--
++ ghc-persistent.spec ++
--- /var/tmp/diff_new_pack.sPYvRE/_old  2020-03-09 14:16:43.642638843 +0100
+++ /var/tmp/diff_new_pack.sPYvRE/_new  2020-03-09 14:16:43.646638845 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-persistent
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 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 persistent
 %bcond_with tests
 Name:   ghc-%{pkg_name}
-Version:2.10.4
+Version:2.10.5.2
 Release:0
 Summary:Type-safe, multi-backend data serialization
 License:MIT

++ persistent-2.10.4.tar.gz -> persistent-2.10.5.2.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/persistent-2.10.4/ChangeLog.md 
new/persistent-2.10.5.2/ChangeLog.md
--- old/persistent-2.10.4/ChangeLog.md  2019-10-29 18:51:02.0 +0100
+++ new/persistent-2.10.5.2/ChangeLog.md2020-02-15 01:07:11.0 
+0100
@@ -1,5 +1,23 @@
 # Changelog for persistent
 
+## 2.10.5.2
+
+* [#1041](https://github.com/yesodweb/persistent/pull/1041)
+  * Explicit foreign keys can now reference tables with custom sql name
+  * Add qualified names to the stock classes list.
+
+## 2.10.5.1
+
+* [#1024](https://github.com/yesodweb/persistent/pull/1024)
+* Add the ability to do documentation comments in entity definition 
syntax. Unfortunately, TemplateHaskell cannot add documentation comments, so 
this can't be used to add Haddocks to entities. 
+* Add Haddock explainers for some of the supported entity syntax in 
`Database.Persist.Quasi`
+
+## 2.10.5
+
+* Add the `EntityWithPrefix` type to allow users to specify a custom prefix 
for raw SQL queries. [#1018](https://github.com/yesodweb/persistent/pull/1018)
+* Added Acquire based API to `Database.Persist.Sql` for working with
+  connections/pools in monads which aren't MonadUnliftIO. 
[#984](https://github.com/yesodweb/persistent/pull/984)
+
 ## 2.10.4
 
 * Log exceptions when closing a connection fails. See point 1 in [yesod 
#1635](https://github.com/yesodweb/yesod/issues/1635#issuecomment-547300856). 
[#978](https://github.com/yesodweb/persistent/pull/978)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/persistent-2.10.4/Database/Persist/Quasi.hs 
new/persistent-2.10.5.2/Database/Persist/Quasi.hs
--- old/persistent-2.10.4/Database/Persist/Qua

commit ghc-persistent for openSUSE:Factory

2019-12-27 Thread root
Hello community,

here is the log from the commit of package ghc-persistent for openSUSE:Factory 
checked in at 2019-12-27 13:56:13

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


Package is "ghc-persistent"

Fri Dec 27 13:56:13 2019 rev:17 rq:759475 version:2.10.4

Changes:

--- /work/SRC/openSUSE:Factory/ghc-persistent/ghc-persistent.changes
2019-08-13 20:44:49.423052789 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-persistent.new.6675/ghc-persistent.changes  
2019-12-27 13:56:14.860741776 +0100
@@ -1,0 +2,31 @@
+Fri Nov  8 16:14:26 UTC 2019 - Peter Simons 
+
+- Drop obsolete group attributes.
+
+---
+Thu Oct 31 15:58:04 UTC 2019 - psim...@suse.com
+
+- Update persistent to version 2.10.4.
+  ## 2.10.4
+
+  * Log exceptions when closing a connection fails. See point 1 in [yesod 
#1635](https://github.com/yesodweb/yesod/issues/1635#issuecomment-547300856). 
[#978](https://github.com/yesodweb/persistent/pull/978)
+
+---
+Tue Oct 29 07:32:13 UTC 2019 - psim...@suse.com
+
+- Update persistent to version 2.10.3.
+  ## 2.10.3
+
+  * Added support for GHC 8.8 about MonadFail changes 
[#976](https://github.com/yesodweb/persistent/pull/976)
+
+---
+Thu Oct 24 02:03:00 UTC 2019 - psim...@suse.com
+
+- Update persistent to version 2.10.2.
+  ## 2.10.2
+
+  * Added `runMigrationQuiet` and `runMigrationUnsafeQuiet` to 
`Database.Persist.Sql.Migration` as safer alternatives to `runMigrationSilent`. 
[#971](https://github.com/yesodweb/persistent/pull/971)
+This functions as workaround/fix for: 
[#966](https://github.com/yesodweb/persistent/issues/966), 
[#948](https://github.com/yesodweb/persistent/issues/948), 
[#640](https://github.com/yesodweb/persistent/issues/640), and 
[#474](https://github.com/yesodweb/persistent/issues/474)
+  * Added RawSql instances for 9, 10, 11 and 12-column results. 
[#961](https://github.com/yesodweb/persistent/pull/961)
+
+---

Old:

  persistent-2.10.1.tar.gz

New:

  persistent-2.10.4.tar.gz



Other differences:
--
++ ghc-persistent.spec ++
--- /var/tmp/diff_new_pack.sAzX0e/_old  2019-12-27 13:56:15.376742026 +0100
+++ /var/tmp/diff_new_pack.sAzX0e/_new  2019-12-27 13:56:15.376742026 +0100
@@ -19,11 +19,10 @@
 %global pkg_name persistent
 %bcond_with tests
 Name:   ghc-%{pkg_name}
-Version:2.10.1
+Version:2.10.4
 Release:0
 Summary:Type-safe, multi-backend data serialization
 License:MIT
-Group:  Development/Libraries/Haskell
 URL:https://hackage.haskell.org/package/%{pkg_name}
 Source0:
https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
 BuildRequires:  ghc-Cabal-devel
@@ -49,6 +48,7 @@
 BuildRequires:  ghc-time-devel
 BuildRequires:  ghc-transformers-devel
 BuildRequires:  ghc-unliftio-core-devel
+BuildRequires:  ghc-unliftio-devel
 BuildRequires:  ghc-unordered-containers-devel
 BuildRequires:  ghc-vector-devel
 %if %{with tests}
@@ -61,7 +61,6 @@
 
 %package devel
 Summary:Haskell %{pkg_name} library development files
-Group:  Development/Libraries/Haskell
 Requires:   %{name} = %{version}-%{release}
 Requires:   ghc-compiler = %{ghc_version}
 Requires(post): ghc-compiler = %{ghc_version}

++ persistent-2.10.1.tar.gz -> persistent-2.10.4.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/persistent-2.10.1/ChangeLog.md 
new/persistent-2.10.4/ChangeLog.md
--- old/persistent-2.10.1/ChangeLog.md  2019-08-08 19:29:15.0 +0200
+++ new/persistent-2.10.4/ChangeLog.md  2019-10-29 18:51:02.0 +0100
@@ -1,5 +1,19 @@
 # Changelog for persistent
 
+## 2.10.4
+
+* Log exceptions when closing a connection fails. See point 1 in [yesod 
#1635](https://github.com/yesodweb/yesod/issues/1635#issuecomment-547300856). 
[#978](https://github.com/yesodweb/persistent/pull/978)
+
+## 2.10.3
+
+* Added support for GHC 8.8 about MonadFail changes 
[#976](https://github.com/yesodweb/persistent/pull/976)
+
+## 2.10.2
+
+* Added `runMigrationQuiet` and `runMigrationUnsafeQuiet` to 
`Database.Persist.Sql.Migration` as safer alternatives to `runMigrationSilent`. 
[#971](https://github.com/yesodweb/persistent/pull/971)
+  This functions as workaround/fix for: 
[#966](https://github.com/yesodweb/persistent/issues/966), 
[#948](https://github.com/yesodweb/persistent/issues/948), 
[#640](https://github.com/yesodweb/persist

commit ghc-persistent for openSUSE:Factory

2019-08-13 Thread root
Hello community,

here is the log from the commit of package ghc-persistent for openSUSE:Factory 
checked in at 2019-08-13 20:44:47

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


Package is "ghc-persistent"

Tue Aug 13 20:44:47 2019 rev:16 rq:723077 version:2.10.1

Changes:

--- /work/SRC/openSUSE:Factory/ghc-persistent/ghc-persistent.changes
2019-04-28 20:13:18.198424076 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-persistent.new.9556/ghc-persistent.changes  
2019-08-13 20:44:49.423052789 +0200
@@ -1,0 +2,8 @@
+Fri Aug  9 02:02:30 UTC 2019 - psim...@suse.com
+
+- Update persistent to version 2.10.1.
+  ## 2.10.1
+
+  * Added `constraint=` attribute to allow users to specify foreign reference 
constraint names.
+
+---

Old:

  persistent-2.10.0.tar.gz

New:

  persistent-2.10.1.tar.gz



Other differences:
--
++ ghc-persistent.spec ++
--- /var/tmp/diff_new_pack.8hI1ok/_old  2019-08-13 20:44:50.843052379 +0200
+++ /var/tmp/diff_new_pack.8hI1ok/_new  2019-08-13 20:44:50.871052371 +0200
@@ -19,7 +19,7 @@
 %global pkg_name persistent
 %bcond_with tests
 Name:   ghc-%{pkg_name}
-Version:2.10.0
+Version:2.10.1
 Release:0
 Summary:Type-safe, multi-backend data serialization
 License:MIT

++ persistent-2.10.0.tar.gz -> persistent-2.10.1.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/persistent-2.10.0/ChangeLog.md 
new/persistent-2.10.1/ChangeLog.md
--- old/persistent-2.10.0/ChangeLog.md  2019-04-17 21:50:10.0 +0200
+++ new/persistent-2.10.1/ChangeLog.md  2019-08-08 19:29:15.0 +0200
@@ -1,5 +1,9 @@
 # Changelog for persistent
 
+## 2.10.1
+
+* Added `constraint=` attribute to allow users to specify foreign reference 
constraint names.
+
 ## 2.10.0
 
 * Added two type classes `OnlyOneUniqueKey` and `AtLeastOneUniqueKey`. These 
classes are used as constraints on functions that expect a certain amount of 
unique keys. They are defined automatically as part of the 
`persistent-template`'s generation. 
[#885](https://github.com/yesodweb/persistent/pull/885)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/persistent-2.10.0/Database/Persist/Class/PersistEntity.hs 
new/persistent-2.10.1/Database/Persist/Class/PersistEntity.hs
--- old/persistent-2.10.0/Database/Persist/Class/PersistEntity.hs   
2019-04-15 04:27:15.0 +0200
+++ new/persistent-2.10.1/Database/Persist/Class/PersistEntity.hs   
2019-07-17 15:42:19.0 +0200
@@ -134,6 +134,12 @@
 -- and the argument for the comparison.
 --
 -- Persistent users use combinators to create these.
+--
+-- Note that it's important to be careful about the 'PersistFilter' that
+-- you are using, if you use this directly. For example, using the 'In'
+-- 'PersistFilter' requires that you have an array- or list-shaped
+-- 'EntityField'. It is possible to construct values using this that will
+-- create malformed runtime values.
 data Filter record = forall typ. PersistField typ => Filter
 { filterField  :: EntityField record typ
 , filterValue  :: FilterValue typ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/persistent-2.10.0/Database/Persist/Sql/Internal.hs 
new/persistent-2.10.1/Database/Persist/Sql/Internal.hs
--- old/persistent-2.10.0/Database/Persist/Sql/Internal.hs  2019-04-15 
04:27:15.0 +0200
+++ new/persistent-2.10.1/Database/Persist/Sql/Internal.hs  2019-08-08 
19:29:15.0 +0200
@@ -61,9 +61,13 @@
 Just (resolveTableName allDefs f, refName tn c)
 | otherwise = Nothing
 ref _ _ ("noreference":_) = Nothing
-ref c _ (a:_)
-| Just x <- T.stripPrefix "reference=" a =
-Just (DBName x, refName tn c)
+ref c fe (a:as)
+| Just x <- T.stripPrefix "reference=" a = do
+constraintName <- snd <$> (ref c fe as)
+pure (DBName x, constraintName)
+| Just x <- T.stripPrefix "constraint=" a = do
+tableName <- fst <$> (ref c fe as)
+pure (tableName, DBName x)
 ref c x (_:as) = ref c x as
 
 refName :: DBName -> DBName -> DBName
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/persistent-2.10.0/Database/Persist/Sql/Orphan/PersistQuery.hs 
new/persistent-2.10.1/Database/Persist/Sql/Orphan/PersistQuery.hs
--- old/persistent-2.10.0/Database/Persist/Sql/Orphan/PersistQuery.hs   
2019-04-16 02:36:52.0 +0200
+++ new/persistent-2.10.1/Database/Persist/Sql/Orphan/PersistQu

commit ghc-persistent for openSUSE:Factory

2019-04-28 Thread root
Hello community,

here is the log from the commit of package ghc-persistent for openSUSE:Factory 
checked in at 2019-04-28 20:13:17

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


Package is "ghc-persistent"

Sun Apr 28 20:13:17 2019 rev:15 rq:698556 version:2.10.0

Changes:

--- /work/SRC/openSUSE:Factory/ghc-persistent/ghc-persistent.changes
2019-01-25 22:43:26.427222644 +0100
+++ /work/SRC/openSUSE:Factory/.ghc-persistent.new.5536/ghc-persistent.changes  
2019-04-28 20:13:18.198424076 +0200
@@ -1,0 +2,21 @@
+Thu Apr 18 02:03:32 UTC 2019 - psim...@suse.com
+
+- Update persistent to version 2.10.0.
+  ## 2.10.0
+
+  * Added two type classes `OnlyOneUniqueKey` and `AtLeastOneUniqueKey`. These 
classes are used as constraints on functions that expect a certain amount of 
unique keys. They are defined automatically as part of the 
`persistent-template`'s generation. 
[#885](https://github.com/yesodweb/persistent/pull/885)
+  * Add the `entityComments` field to the `EntityDef` datatype, and 
`fieldComments` fields to the `FieldDef` datatype. The QuasiQuoter does not 
currently know how to add documentation comments to these types, but it can be 
expanded later. [#865](https://github.com/yesodweb/persistent/pull/865)
+  * Expose the `SqlReadT` and `SqlWriteT` constructors. 
[#887](https://github.com/yesodweb/persistent/pull/887)
+  * Remove deprecated `Connection` type synonym. Please use `SqlBackend` 
instead. [#894](https://github.com/yesodweb/persistent/pull/894)
+  * Remove deprecated `SqlPersist` type synonym. Please use `SqlPersistT` 
instead. [#894](https://github.com/yesodweb/persistent/pull/894)
+  * Alter the type of `connUpsertSql` to take a list of unique definitions. 
This paves the way for more efficient upsert implementations. 
[#895](https://github.com/yesodweb/persistent/pull/895)
+
+---
+Mon Apr  8 02:01:53 UTC 2019 - psim...@suse.com
+
+- Update persistent to version 2.9.2.
+  ## 2.9.2
+
+  * Add documentation for the `Migration` type and some helpers. 
[#860](https://github.com/yesodweb/persistent/pull/860)
+
+---

Old:

  persistent-2.9.1.tar.gz
  persistent.cabal

New:

  persistent-2.10.0.tar.gz



Other differences:
--
++ ghc-persistent.spec ++
--- /var/tmp/diff_new_pack.E0IFnS/_old  2019-04-28 20:13:21.030422315 +0200
+++ /var/tmp/diff_new_pack.E0IFnS/_new  2019-04-28 20:13:21.034422313 +0200
@@ -19,20 +19,18 @@
 %global pkg_name persistent
 %bcond_with tests
 Name:   ghc-%{pkg_name}
-Version:2.9.1
+Version:2.10.0
 Release:0
 Summary:Type-safe, multi-backend data serialization
 License:MIT
 Group:  Development/Libraries/Haskell
 URL:https://hackage.haskell.org/package/%{pkg_name}
 Source0:
https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
-Source1:
https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/1.cabal#/%{pkg_name}.cabal
 BuildRequires:  ghc-Cabal-devel
 BuildRequires:  ghc-aeson-devel
 BuildRequires:  ghc-attoparsec-devel
 BuildRequires:  ghc-base64-bytestring-devel
 BuildRequires:  ghc-blaze-html-devel
-BuildRequires:  ghc-blaze-markup-devel
 BuildRequires:  ghc-bytestring-devel
 BuildRequires:  ghc-conduit-devel
 BuildRequires:  ghc-containers-devel
@@ -40,14 +38,12 @@
 BuildRequires:  ghc-http-api-data-devel
 BuildRequires:  ghc-monad-logger-devel
 BuildRequires:  ghc-mtl-devel
-BuildRequires:  ghc-old-locale-devel
 BuildRequires:  ghc-path-pieces-devel
 BuildRequires:  ghc-resource-pool-devel
 BuildRequires:  ghc-resourcet-devel
 BuildRequires:  ghc-rpm-macros
 BuildRequires:  ghc-scientific-devel
 BuildRequires:  ghc-silently-devel
-BuildRequires:  ghc-tagged-devel
 BuildRequires:  ghc-template-haskell-devel
 BuildRequires:  ghc-text-devel
 BuildRequires:  ghc-time-devel
@@ -55,10 +51,8 @@
 BuildRequires:  ghc-unliftio-core-devel
 BuildRequires:  ghc-unordered-containers-devel
 BuildRequires:  ghc-vector-devel
-BuildRequires:  ghc-void-devel
 %if %{with tests}
 BuildRequires:  ghc-hspec-devel
-BuildRequires:  ghc-monad-control-devel
 %endif
 
 %description
@@ -78,7 +72,6 @@
 
 %prep
 %setup -q -n %{pkg_name}-%{version}
-cp -p %{SOURCE1} %{pkg_name}.cabal
 
 %build
 %ghc_lib_build

++ persistent-2.9.1.tar.gz -> persistent-2.10.0.tar.gz ++
 2592 lines of diff (skipped)




commit ghc-persistent for openSUSE:Factory

2019-01-25 Thread root
Hello community,

here is the log from the commit of package ghc-persistent for openSUSE:Factory 
checked in at 2019-01-25 22:43:26

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


Package is "ghc-persistent"

Fri Jan 25 22:43:26 2019 rev:14 rq:667140 version:2.9.1

Changes:

--- /work/SRC/openSUSE:Factory/ghc-persistent/ghc-persistent.changes
2018-12-06 12:17:19.177519625 +0100
+++ /work/SRC/openSUSE:Factory/.ghc-persistent.new.28833/ghc-persistent.changes 
2019-01-25 22:43:26.427222644 +0100
@@ -1,0 +2,8 @@
+Fri Jan 18 03:02:20 UTC 2019 - psim...@suse.com
+
+- Update persistent to version 2.9.1.
+  ## 2.9.1
+
+  * Fix [#847](https://github.com/yesodweb/persistent/issues/847): SQL error 
with `putMany` on Sqlite when Entity has no unique index.
+
+---

Old:

  persistent-2.9.0.tar.gz

New:

  persistent-2.9.1.tar.gz



Other differences:
--
++ ghc-persistent.spec ++
--- /var/tmp/diff_new_pack.HDydXZ/_old  2019-01-25 22:43:27.287221585 +0100
+++ /var/tmp/diff_new_pack.HDydXZ/_new  2019-01-25 22:43:27.291221580 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-persistent
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 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 persistent
 %bcond_with tests
 Name:   ghc-%{pkg_name}
-Version:2.9.0
+Version:2.9.1
 Release:0
 Summary:Type-safe, multi-backend data serialization
 License:MIT

++ persistent-2.9.0.tar.gz -> persistent-2.9.1.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/persistent-2.9.0/ChangeLog.md 
new/persistent-2.9.1/ChangeLog.md
--- old/persistent-2.9.0/ChangeLog.md   2018-10-14 08:52:58.0 +0200
+++ new/persistent-2.9.1/ChangeLog.md   2019-01-17 20:20:39.0 +0100
@@ -1,5 +1,9 @@
 # Changelog for persistent
 
+## 2.9.1
+
+* Fix [#847](https://github.com/yesodweb/persistent/issues/847): SQL error 
with `putMany` on Sqlite when Entity has no unique index.
+
 ## 2.9.0
 
 * Added support for SQL isolation levels to via SqlBackend. [#812]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/persistent-2.9.0/Database/Persist/Class/PersistUnique.hs 
new/persistent-2.9.1/Database/Persist/Class/PersistUnique.hs
--- old/persistent-2.9.0/Database/Persist/Class/PersistUnique.hs
2018-08-23 05:29:55.0 +0200
+++ new/persistent-2.9.1/Database/Persist/Class/PersistUnique.hs
2019-01-17 20:20:39.0 +0100
@@ -502,31 +502,37 @@
 -> ReaderT backend m ()
 defaultPutMany []   = return ()
 defaultPutMany rsD  = do
-let rs = nubBy ((==) `on` persistUniqueKeyValues) (reverse rsD)
-
--- lookup record(s) by their unique key
-mEsOld <- mapM getByValue rs
-
--- find pre-existing entities and corresponding (incoming) records
-let merge (Just x) y = Just (x, y)
-merge __ = Nothing
-let mEsOldAndRs = zipWith merge mEsOld rs
-let esOldAndRs = catMaybes mEsOldAndRs
-
--- determine records to insert
-let esOld = fmap fst esOldAndRs
-let rsOld = fmap entityVal esOld
-let rsNew = deleteFirstsBy ((==) `on` persistUniqueKeyValues) rs rsOld
-
--- determine records to update
-let rsUpd = fmap snd esOldAndRs
-let ksOld = fmap entityKey esOld
-let krs   = zip ksOld rsUpd
-
--- insert `new` records
-insertMany_ rsNew
--- replace existing records
-mapM_ (uncurry replace) krs
+let uKeys = persistUniqueKeys . head $ rsD
+case uKeys of
+[] -> insertMany_ rsD
+_ -> go
+  where
+go = do
+let rs = nubBy ((==) `on` persistUniqueKeyValues) (reverse rsD)
+
+-- lookup record(s) by their unique key
+mEsOld <- mapM getByValue rs
+
+-- find pre-existing entities and corresponding (incoming) records
+let merge (Just x) y = Just (x, y)
+merge __ = Nothing
+let mEsOldAndRs = zipWith merge mEsOld rs
+let esOldAndRs = catMaybes mEsOldAndRs
+
+-- determine records to insert
+let esOld = fmap fst esOldAndRs
+let rsOld = fmap entityVal esOld
+let rsNew = deleteFirstsBy ((==) `on` persistUniqueKeyValues) rs rsOld
+
+-- determine records to update
+let rsUpd = fmap snd esOldAndRs
+let ksOld = fmap entityKey esOld
+let krs   = zip ksOld rsUpd
+
+-- in

commit ghc-persistent for openSUSE:Factory

2018-12-06 Thread root
Hello community,

here is the log from the commit of package ghc-persistent for openSUSE:Factory 
checked in at 2018-12-06 12:17:09

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


Package is "ghc-persistent"

Thu Dec  6 12:17:09 2018 rev:13 rq:653449 version:2.9.0

Changes:

--- /work/SRC/openSUSE:Factory/ghc-persistent/ghc-persistent.changes
2018-10-25 08:18:11.004022396 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-persistent.new.19453/ghc-persistent.changes 
2018-12-06 12:17:19.177519625 +0100
@@ -1,0 +2,5 @@
+Sun Dec  2 16:06:13 UTC 2018 - Peter Simons 
+
+- Update Cabal build instructions to support http-api-data 0.4.x.
+
+---

New:

  persistent.cabal



Other differences:
--
++ ghc-persistent.spec ++
--- /var/tmp/diff_new_pack.temvVJ/_old  2018-12-06 12:17:23.033515484 +0100
+++ /var/tmp/diff_new_pack.temvVJ/_new  2018-12-06 12:17:23.037515480 +0100
@@ -26,6 +26,7 @@
 Group:  Development/Libraries/Haskell
 URL:https://hackage.haskell.org/package/%{pkg_name}
 Source0:
https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
+Source1:
https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/1.cabal#/%{pkg_name}.cabal
 BuildRequires:  ghc-Cabal-devel
 BuildRequires:  ghc-aeson-devel
 BuildRequires:  ghc-attoparsec-devel
@@ -77,6 +78,7 @@
 
 %prep
 %setup -q -n %{pkg_name}-%{version}
+cp -p %{SOURCE1} %{pkg_name}.cabal
 
 %build
 %ghc_lib_build

++ persistent.cabal ++
name:persistent
version: 2.9.0
x-revision: 1
license: MIT
license-file:LICENSE
author:  Michael Snoyman 
maintainer:  Michael Snoyman , Greg Weber 

synopsis:Type-safe, multi-backend data serialization.
description: Hackage documentation generation is not reliable. For up to 
date documentation, please see: .
category:Database, Yesod
stability:   Stable
cabal-version:   >= 1.8
build-type:  Simple
homepage:http://www.yesodweb.com/book/persistent
bug-reports: https://github.com/yesodweb/persistent/issues
extra-source-files: ChangeLog.md README.md

flag nooverlap
default: False
description: test out our assumption that OverlappingInstances is just for 
String

library
if flag(nooverlap)
cpp-options: -DNO_OVERLAP

build-depends:   base >= 4.7   && < 5
   , bytestring   >= 0.9
   , transformers >= 0.2.1
   , time >= 1.1.4
   , old-locale
   , text >= 0.8
   , containers   >= 0.2
   , conduit  >= 1.2.8
   , resourcet>= 1.1.10
   , resource-pool>= 0.2.2.0
   , path-pieces  >= 0.1
   , http-api-data>= 0.2
   , aeson>= 0.5
   , monad-logger >= 0.3.28
   , base64-bytestring
   , unordered-containers
   , vector
   , attoparsec
   , template-haskell
   , blaze-html   >= 0.5
   , blaze-markup >= 0.5.1
   , silently
   , mtl
   , fast-logger  >= 2.1
   , scientific
   , tagged
   , unliftio-core
   , void

exposed-modules: Database.Persist
 Database.Persist.Quasi

 Database.Persist.Types
 Database.Persist.Class
 Database.Persist.Sql
 Database.Persist.Sql.Util
 Database.Persist.Sql.Types.Internal

other-modules:   Database.Persist.Types.Base
 Database.Persist.Class.DeleteCascade
 Database.Persist.Class.PersistEntity
 Database.Persist.Class.PersistQuery
 Database.Persist.Class.PersistUnique
 Database.Persist.Class.PersistConfig
 Database.Persist.Class.PersistField
 Database.Persist.Class.PersistStore

 Database.Persist.Sql.Migration
 Database.Persist.Sql.Internal
 Database.Persist.Sql.Types
 Database.Persist.Sql.Raw
 

commit ghc-persistent for openSUSE:Factory

2018-10-24 Thread root
Hello community,

here is the log from the commit of package ghc-persistent for openSUSE:Factory 
checked in at 2018-10-25 08:17:53

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


Package is "ghc-persistent"

Thu Oct 25 08:17:53 2018 rev:12 rq:642887 version:2.9.0

Changes:

--- /work/SRC/openSUSE:Factory/ghc-persistent/ghc-persistent.changes
2018-07-21 10:22:23.710998380 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-persistent.new/ghc-persistent.changes   
2018-10-25 08:18:11.004022396 +0200
@@ -1,0 +2,12 @@
+Mon Oct 15 02:01:23 UTC 2018 - psim...@suse.com
+
+- Update persistent to version 2.9.0.
+  # Changelog for persistent
+
+  ## 2.9.0
+
+  * Added support for SQL isolation levels to via SqlBackend. [#812]
+  * Move `Database.Persist.Sql.Raw.QQ` to a separate `persistent-qq` package 
[#827](https://github.com/yesodweb/persistent/issues/827)
+  * Fix [832](https://github.com/yesodweb/persistent/issues/832): 
`repsertMany` now matches `mapM_ (uncurry repsert)` and is atomic for supported 
sql back-ends.
+
+---

Old:

  persistent-2.8.2.tar.gz
  persistent.cabal

New:

  persistent-2.9.0.tar.gz



Other differences:
--
++ ghc-persistent.spec ++
--- /var/tmp/diff_new_pack.wJcHJa/_old  2018-10-25 08:18:12.296021829 +0200
+++ /var/tmp/diff_new_pack.wJcHJa/_new  2018-10-25 08:18:12.296021829 +0200
@@ -12,21 +12,20 @@
 # 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/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
 %global pkg_name persistent
 %bcond_with tests
 Name:   ghc-%{pkg_name}
-Version:2.8.2
+Version:2.9.0
 Release:0
 Summary:Type-safe, multi-backend data serialization
 License:MIT
 Group:  Development/Libraries/Haskell
 URL:https://hackage.haskell.org/package/%{pkg_name}
 Source0:
https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
-Source1:
https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/1.cabal#/%{pkg_name}.cabal
 BuildRequires:  ghc-Cabal-devel
 BuildRequires:  ghc-aeson-devel
 BuildRequires:  ghc-attoparsec-devel
@@ -37,7 +36,6 @@
 BuildRequires:  ghc-conduit-devel
 BuildRequires:  ghc-containers-devel
 BuildRequires:  ghc-fast-logger-devel
-BuildRequires:  ghc-haskell-src-meta-devel
 BuildRequires:  ghc-http-api-data-devel
 BuildRequires:  ghc-monad-logger-devel
 BuildRequires:  ghc-mtl-devel
@@ -79,7 +77,6 @@
 
 %prep
 %setup -q -n %{pkg_name}-%{version}
-cp -p %{SOURCE1} %{pkg_name}.cabal
 
 %build
 %ghc_lib_build

++ persistent-2.8.2.tar.gz -> persistent-2.9.0.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/persistent-2.8.2/ChangeLog.md 
new/persistent-2.9.0/ChangeLog.md
--- old/persistent-2.8.2/ChangeLog.md   2018-04-13 09:01:36.0 +0200
+++ new/persistent-2.9.0/ChangeLog.md   2018-10-14 08:52:58.0 +0200
@@ -1,3 +1,11 @@
+# Changelog for persistent
+
+## 2.9.0
+
+* Added support for SQL isolation levels to via SqlBackend. [#812]
+* Move `Database.Persist.Sql.Raw.QQ` to a separate `persistent-qq` package 
[#827](https://github.com/yesodweb/persistent/issues/827)
+* Fix [832](https://github.com/yesodweb/persistent/issues/832): `repsertMany` 
now matches `mapM_ (uncurry repsert)` and is atomic for supported sql back-ends.
+
 ## 2.8.2
 
 * Added support for `sql=` to the unique constraints quasi-quoter so that 
users can specify the database names of the constraints.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/persistent-2.8.2/Database/Persist/Class/PersistStore.hs 
new/persistent-2.9.0/Database/Persist/Class/PersistStore.hs
--- old/persistent-2.8.2/Database/Persist/Class/PersistStore.hs 2018-04-13 
09:01:36.0 +0200
+++ new/persistent-2.9.0/Database/Persist/Class/PersistStore.hs 2018-10-14 
08:50:22.0 +0200
@@ -132,12 +132,48 @@
   , PersistField (BackendKey backend), A.ToJSON (BackendKey backend), 
A.FromJSON (BackendKey backend)
   ) => PersistStoreRead backend where
 -- | Get a record by identifier, if available.
+--
+-- === __Example usage__
+--
+-- With <#schema-persist-store-1 schema-1> and <#dataset-persist-store-1 
dataset-1>,
+--
+-- > getSpj :: MonadIO m => ReaderT SqlBackend m (Maybe User)
+-- > getSpj = get spjId
+--
+-- > mspj <- getSpj
+--
+-- The above query when applied on <#dataset-persist-store-1 d

commit ghc-persistent for openSUSE:Factory

2018-07-21 Thread root
Hello community,

here is the log from the commit of package ghc-persistent for openSUSE:Factory 
checked in at 2018-07-21 10:22:10

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


Package is "ghc-persistent"

Sat Jul 21 10:22:10 2018 rev:11 rq:623829 version:2.8.2

Changes:

--- /work/SRC/openSUSE:Factory/ghc-persistent/ghc-persistent.changes
2018-05-30 12:26:45.123424303 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-persistent.new/ghc-persistent.changes   
2018-07-21 10:22:23.710998380 +0200
@@ -1,0 +2,6 @@
+Wed Jul 18 14:26:36 UTC 2018 - psim...@suse.com
+
+- Cosmetic: replace tabs with blanks, strip trailing white space,
+  and update copyright headers with spec-cleaner.
+
+---
@@ -80 +85,0 @@
-



Other differences:
--



commit ghc-persistent for openSUSE:Factory

2018-05-30 Thread root
Hello community,

here is the log from the commit of package ghc-persistent for openSUSE:Factory 
checked in at 2018-05-30 12:11:31

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


Package is "ghc-persistent"

Wed May 30 12:11:31 2018 rev:10 rq:607856 version:2.8.2

Changes:

--- /work/SRC/openSUSE:Factory/ghc-persistent/ghc-persistent.changes
2017-09-15 22:04:09.900921452 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-persistent.new/ghc-persistent.changes   
2018-05-30 12:26:45.123424303 +0200
@@ -1,0 +2,27 @@
+Mon May 14 17:02:11 UTC 2018 - psim...@suse.com
+
+- Update persistent to version 2.8.2 revision 1.
+  * Added support for `sql=` to the unique constraints quasi-quoter so that 
users can specify the database names of the constraints.
+  * DRY-ed up and exposed several util functions in 
`Database.Persist.Sql.Util`.
+  * Upstream-ed `updatePersistValue`, `mkUpdateText`, and 
`commaSeparated` from `Database.Persist.MySQL`.
+  * De-duplicated `updatePersistValue` from various 
`Database.Persist.Sql.Orphan.*` modules.
+  * Batching enhancements to reduce db round-trips.
+  * Added `getMany` and `repsertMany` for batched `get` and `repsert`.
+  * Added `putMany` with a default/slow implementation. SqlBackend's 
that support native UPSERT should override this for batching enhancements.
+  * Updated `insertEntityMany` to replace slow looped usage with 
batched execution.
+  * See [#770](https://github.com/yesodweb/persistent/pull/770)
+  * Switch from `MonadBaseControl` to `MonadUnliftIO`
+  * Reapplies [#723](https://github.com/yesodweb/persistent/pull/723), which 
was reverted in version 2.7.3.
+  * Improve error messages when failing to parse database results into 
Persistent records. [#741](https://github.com/yesodweb/persistent/pull/741)
+  * A handful of `fromPersistField` implementations called `error` instead of 
returning a `Left Text`. All of the implementations were changed to return 
`Left`. [#741](https://github.com/yesodweb/persistent/pull/741)
+  * Improve error message when a SQL insert fails with a custom primary key 
[#757](https://github.com/yesodweb/persistent/pull/757)
+  * Reverts [#723](https://github.com/yesodweb/persistent/pull/723), which 
generalized functions using the `BackendCompatible` class. These changes were 
an accidental breaking change.
+  * Recommend the `PersistDbSpecific` docs if someone gets an error about 
converting from `PersistDbSpecific`
+  * Many of the functions have been generalized using the `BackendCompatible` 
class. [#723](https://github.com/yesodweb/persistent/pull/723)
+  * This change was an accidental breaking change and was reverted in 
2.7.3.
+  * These change will be released in a future version of Persistent 
with a major version bump.
+  * Add raw sql quasi quoters 
[#717](https://github.com/yesodweb/persistent/pull/717)
+  * Added an `insertUniqueEntity` function 
[#718](https://github.com/yesodweb/persistent/pull/718)
+  * Added `BackendCompatible` class 
[#701](https://github.com/yesodweb/persistent/pull/701)
+
+---

Old:

  persistent-2.7.0.tar.gz

New:

  persistent-2.8.2.tar.gz
  persistent.cabal



Other differences:
--
++ ghc-persistent.spec ++
--- /var/tmp/diff_new_pack.0mATQ5/_old  2018-05-30 12:26:46.087391333 +0200
+++ /var/tmp/diff_new_pack.0mATQ5/_new  2018-05-30 12:26:46.091391196 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-persistent
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 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,13 +19,14 @@
 %global pkg_name persistent
 %bcond_with tests
 Name:   ghc-%{pkg_name}
-Version:2.7.0
+Version:2.8.2
 Release:0
 Summary:Type-safe, multi-backend data serialization
 License:MIT
 Group:  Development/Libraries/Haskell
 URL:https://hackage.haskell.org/package/%{pkg_name}
 Source0:
https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
+Source1:
https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/1.cabal#/%{pkg_name}.cabal
 BuildRequires:  ghc-Cabal-devel
 BuildRequires:  ghc-aeson-devel
 BuildRequires:  ghc-attoparsec-devel
@@ -35,11 +36,9 @@
 BuildRequires:  ghc-bytestring-devel
 BuildRequires:  ghc-conduit-devel
 BuildRequires:  ghc-containers-devel
-BuildRequires:  ghc-exceptions-devel
 BuildRequires:  ghc-fast-logger-de

commit ghc-persistent for openSUSE:Factory

2017-09-15 Thread root
Hello community,

here is the log from the commit of package ghc-persistent for openSUSE:Factory 
checked in at 2017-09-15 22:04:09

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


Package is "ghc-persistent"

Fri Sep 15 22:04:09 2017 rev:9 rq:525148 version:2.7.0

Changes:

--- /work/SRC/openSUSE:Factory/ghc-persistent/ghc-persistent.changes
2017-08-31 20:57:52.371535331 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-persistent.new/ghc-persistent.changes   
2017-09-15 22:04:09.900921452 +0200
@@ -1,0 +2,5 @@
+Thu Aug  3 15:38:38 UTC 2017 - psim...@suse.com
+
+- Updated with latest spec-cleaner version 0.9.8-8-geadfbbf.
+
+---



Other differences:
--
++ ghc-persistent.spec ++
--- /var/tmp/diff_new_pack.ty6URL/_old  2017-09-15 22:04:10.600822835 +0200
+++ /var/tmp/diff_new_pack.ty6URL/_new  2017-09-15 22:04:10.604822271 +0200
@@ -23,8 +23,8 @@
 Release:0
 Summary:Type-safe, multi-backend data serialization
 License:MIT
-Group:  Development/Languages/Other
-Url:https://hackage.haskell.org/package/%{pkg_name}
+Group:  Development/Libraries/Haskell
+URL:https://hackage.haskell.org/package/%{pkg_name}
 Source0:
https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
 BuildRequires:  ghc-Cabal-devel
 BuildRequires:  ghc-aeson-devel
@@ -57,7 +57,6 @@
 BuildRequires:  ghc-transformers-devel
 BuildRequires:  ghc-unordered-containers-devel
 BuildRequires:  ghc-vector-devel
-BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 %if %{with tests}
 BuildRequires:  ghc-hspec-devel
 %endif
@@ -68,7 +67,7 @@
 
 %package devel
 Summary:Haskell %{pkg_name} library development files
-Group:  Development/Libraries/Other
+Group:  Development/Libraries/Haskell
 Requires:   %{name} = %{version}-%{release}
 Requires:   ghc-compiler = %{ghc_version}
 Requires(post): ghc-compiler = %{ghc_version}
@@ -96,11 +95,9 @@
 %ghc_pkg_recache
 
 %files -f %{name}.files
-%defattr(-,root,root,-)
 %doc LICENSE
 
 %files devel -f %{name}-devel.files
-%defattr(-,root,root,-)
 %doc ChangeLog.md README.md
 
 %changelog




commit ghc-persistent for openSUSE:Factory

2017-08-31 Thread root
Hello community,

here is the log from the commit of package ghc-persistent for openSUSE:Factory 
checked in at 2017-08-31 20:57:51

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


Package is "ghc-persistent"

Thu Aug 31 20:57:51 2017 rev:8 rq:513449 version:2.7.0

Changes:

--- /work/SRC/openSUSE:Factory/ghc-persistent/ghc-persistent.changes
2017-04-11 09:43:03.230959323 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-persistent.new/ghc-persistent.changes   
2017-08-31 20:57:52.371535331 +0200
@@ -1,0 +2,5 @@
+Thu Jul 27 14:07:37 UTC 2017 - psim...@suse.com
+
+- Update to version 2.7.0.
+
+---

Old:

  persistent-2.6.1.tar.gz

New:

  persistent-2.7.0.tar.gz



Other differences:
--
++ ghc-persistent.spec ++
--- /var/tmp/diff_new_pack.tIXxDr/_old  2017-08-31 20:57:53.123429689 +0200
+++ /var/tmp/diff_new_pack.tIXxDr/_new  2017-08-31 20:57:53.127429126 +0200
@@ -19,7 +19,7 @@
 %global pkg_name persistent
 %bcond_with tests
 Name:   ghc-%{pkg_name}
-Version:2.6.1
+Version:2.7.0
 Release:0
 Summary:Type-safe, multi-backend data serialization
 License:MIT

++ persistent-2.6.1.tar.gz -> persistent-2.7.0.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/persistent-2.6.1/ChangeLog.md 
new/persistent-2.7.0/ChangeLog.md
--- old/persistent-2.6.1/ChangeLog.md   2017-03-06 13:58:44.0 +0100
+++ new/persistent-2.7.0/ChangeLog.md   2017-04-10 20:11:23.0 +0200
@@ -1,3 +1,9 @@
+## 2.7.0
+
+* Fix upsert behavior [#613](https://github.com/yesodweb/persistent/issues/613)
+* Atomic upsert query fixed for arithmatic operations 
[#662](https://github.com/yesodweb/persistent/issues/662)
+* Haddock and test coverage improved for upsert
+
 ## 2.6.1
 
 * Fix edge case for `\<-. [Nothing]`
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/persistent-2.6.1/Database/Persist/Class/PersistUnique.hs 
new/persistent-2.7.0/Database/Persist/Class/PersistUnique.hs
--- old/persistent-2.6.1/Database/Persist/Class/PersistUnique.hs
2017-03-01 07:48:55.0 +0100
+++ new/persistent-2.7.0/Database/Persist/Class/PersistUnique.hs
2017-04-10 20:00:24.0 +0200
@@ -1,18 +1,19 @@
 {-# LANGUAGE CPP #-}
 {-# LANGUAGE TypeFamilies, FlexibleContexts, ConstraintKinds #-}
+
 module Database.Persist.Class.PersistUnique
-( PersistUniqueRead (..)
-, PersistUniqueWrite (..)
-, getByValue
-, insertBy
-, replaceUnique
-, checkUnique
-, onlyUnique
-) where
+  (PersistUniqueRead(..)
+  ,PersistUniqueWrite(..)
+  ,getByValue
+  ,insertBy
+  ,replaceUnique
+  ,checkUnique
+  ,onlyUnique)
+  where
 
 import Database.Persist.Types
 import Control.Exception (throwIO)
-import Control.Monad (liftM, when)
+import Control.Monad (liftM)
 import Control.Monad.IO.Class (liftIO, MonadIO)
 import Data.List ((\\))
 import Control.Monad.Trans.Reader (ReaderT)
@@ -36,9 +37,12 @@
 -- you must manually place a unique index on a field to have a uniqueness
 -- constraint.
 --
-class (PersistCore backend, PersistStoreRead backend) => PersistUniqueRead 
backend where
+class (PersistCore backend, PersistStoreRead backend) =>
+  PersistUniqueRead backend  where
 -- | Get a record by unique key, if available. Returns also the identifier.
-getBy :: (MonadIO m, PersistRecordBackend record backend) => Unique record 
-> ReaderT backend m (Maybe (Entity record))
+getBy
+:: (MonadIO m, PersistRecordBackend record backend)
+=> Unique record -> ReaderT backend m (Maybe (Entity record))
 
 -- | Some functions in this module ('insertUnique', 'insertBy', and
 -- 'replaceUnique') first query the unique indexes to check for
@@ -49,72 +53,71 @@
 --  determing the column of failure;
 --
 --  * an exception will automatically abort the current SQL transaction.
-class (PersistUniqueRead backend, PersistStoreWrite backend) => 
PersistUniqueWrite backend where
-
+class (PersistUniqueRead backend, PersistStoreWrite backend) =>
+  PersistUniqueWrite backend  where
 -- | Delete a specific record by unique key. Does nothing if no record
 -- matches.
-deleteBy :: (MonadIO m, PersistRecordBackend record backend) => Unique 
record -> ReaderT backend m ()
-
+deleteBy
+:: (MonadIO m, PersistRecordBackend record backend)
+=> Unique record -> ReaderT backend m ()
 -- | Like 'insert', but returns 'Nothing' when the record
 -- couldn't be inserted because of a uniqueness constraint.
-insertUnique :: (MonadIO m, PersistRecordBacke

commit ghc-persistent for openSUSE:Factory

2017-04-11 Thread root
Hello community,

here is the log from the commit of package ghc-persistent for openSUSE:Factory 
checked in at 2017-04-11 09:43:03

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


Package is "ghc-persistent"

Tue Apr 11 09:43:03 2017 rev:7 rq:485151 version:2.6.1

Changes:

--- /work/SRC/openSUSE:Factory/ghc-persistent/ghc-persistent.changes
2016-10-18 10:41:03.0 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-persistent.new/ghc-persistent.changes   
2017-04-11 09:43:03.230959323 +0200
@@ -1,0 +2,5 @@
+Tue Mar 14 09:26:00 UTC 2017 - psim...@suse.com
+
+- Update to version 2.6.1 with cabal2obs.
+
+---

Old:

  persistent-2.6.tar.gz
  persistent.cabal

New:

  persistent-2.6.1.tar.gz



Other differences:
--
++ ghc-persistent.spec ++
--- /var/tmp/diff_new_pack.teyV3i/_old  2017-04-11 09:43:03.834874012 +0200
+++ /var/tmp/diff_new_pack.teyV3i/_new  2017-04-11 09:43:03.834874012 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-persistent
 #
-# 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,14 +19,13 @@
 %global pkg_name persistent
 %bcond_with tests
 Name:   ghc-%{pkg_name}
-Version:2.6
+Version:2.6.1
 Release:0
 Summary:Type-safe, multi-backend data serialization
 License:MIT
 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
-Source1:
https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/2.cabal#/%{pkg_name}.cabal
 BuildRequires:  ghc-Cabal-devel
 BuildRequires:  ghc-aeson-devel
 BuildRequires:  ghc-attoparsec-devel
@@ -80,7 +79,6 @@
 
 %prep
 %setup -q -n %{pkg_name}-%{version}
-cp -p %{SOURCE1} %{pkg_name}.cabal
 
 %build
 %ghc_lib_build
@@ -103,5 +101,6 @@
 
 %files devel -f %{name}-devel.files
 %defattr(-,root,root,-)
+%doc ChangeLog.md README.md
 
 %changelog

++ persistent-2.6.tar.gz -> persistent-2.6.1.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/persistent-2.6/ChangeLog.md 
new/persistent-2.6.1/ChangeLog.md
--- old/persistent-2.6/ChangeLog.md 2016-08-10 05:29:36.0 +0200
+++ new/persistent-2.6.1/ChangeLog.md   2017-03-06 13:58:44.0 +0100
@@ -1,3 +1,10 @@
+## 2.6.1
+
+* Fix edge case for `\<-. [Nothing]`
+* Introduce `connMaxParams`
+* Add 'getJustEntity' and 'insertRecord' convenience function
+* Minor Haddock improvment
+
 ## 2.6
 
 * Add `connUpsertSql` type for providing backend-specific upsert sql support.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/persistent-2.6/Database/Persist/Class/PersistConfig.hs 
new/persistent-2.6.1/Database/Persist/Class/PersistConfig.hs
--- old/persistent-2.6/Database/Persist/Class/PersistConfig.hs  2016-07-17 
04:15:37.0 +0200
+++ new/persistent-2.6.1/Database/Persist/Class/PersistConfig.hs
2017-03-01 07:48:55.0 +0100
@@ -9,7 +9,7 @@
 import Data.Aeson.Types (Parser)
 import Control.Monad.IO.Class (MonadIO)
 import Control.Monad.Trans.Control (MonadBaseControl)
-import Control.Applicative ((<$>))
+import Control.Applicative as A ((<$>))
 import qualified Data.HashMap.Strict as HashMap
 
 -- | Represents a value containing all the configuration options for a specific
@@ -48,7 +48,7 @@
 
 loadConfig (Object o) =
 case HashMap.lookup "left" o of
-Just v -> Left <$> loadConfig v
+Just v -> Left A.<$> loadConfig v
 Nothing ->
 case HashMap.lookup "right" o of
 Just v -> Right <$> loadConfig v
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/persistent-2.6/Database/Persist/Class/PersistEntity.hs 
new/persistent-2.6.1/Database/Persist/Class/PersistEntity.hs
--- old/persistent-2.6/Database/Persist/Class/PersistEntity.hs  2016-07-17 
04:15:37.0 +0200
+++ new/persistent-2.6.1/Database/Persist/Class/PersistEntity.hs
2017-03-01 07:48:55.0 +0100
@@ -32,9 +32,13 @@
 import Data.Aeson (ToJSON (..), FromJSON (..), fromJSON, object, (.:), (.=), 
Value (Object))
 import qualified Data.Aeson.Parser as AP
 import Data.Aeson.Types (Parser,Result(Error,Success))
+#if MIN_VERSION_aeson(1,0,0)
+import Data.Aeson.Text (encode

commit ghc-persistent for openSUSE:Factory

2016-10-18 Thread h_root
Hello community,

here is the log from the commit of package ghc-persistent for openSUSE:Factory 
checked in at 2016-10-18 10:41:03

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


Package is "ghc-persistent"

Changes:

--- /work/SRC/openSUSE:Factory/ghc-persistent/ghc-persistent.changes
2016-07-21 08:16:03.0 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-persistent.new/ghc-persistent.changes   
2016-10-18 10:41:03.0 +0200
@@ -1,0 +2,10 @@
+Fri Sep 30 08:18:50 UTC 2016 - psim...@suse.com
+
+- Update to version 2.6 revision 2 with cabal2obs.
+
+---
+Thu Sep 15 07:09:44 UTC 2016 - psim...@suse.com
+
+- Update to version 2.6 revision 1 with cabal2obs.
+
+---

Old:

  persistent-2.2.4.1.tar.gz

New:

  persistent-2.6.tar.gz
  persistent.cabal



Other differences:
--
++ ghc-persistent.spec ++
--- /var/tmp/diff_new_pack.43DcLl/_old  2016-10-18 10:41:05.0 +0200
+++ /var/tmp/diff_new_pack.43DcLl/_new  2016-10-18 10:41:05.0 +0200
@@ -19,15 +19,15 @@
 %global pkg_name persistent
 %bcond_with tests
 Name:   ghc-%{pkg_name}
-Version:2.2.4.1
+Version:2.6
 Release:0
 Summary:Type-safe, multi-backend data serialization
 License:MIT
-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
+Source1:
https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/2.cabal#/%{pkg_name}.cabal
 BuildRequires:  ghc-Cabal-devel
-# Begin cabal-rpm deps:
 BuildRequires:  ghc-aeson-devel
 BuildRequires:  ghc-attoparsec-devel
 BuildRequires:  ghc-base64-bytestring-devel
@@ -62,7 +62,6 @@
 %if %{with tests}
 BuildRequires:  ghc-hspec-devel
 %endif
-# End cabal-rpm deps
 
 %description
 Hackage documentation generation is not reliable. For up to date documentation,
@@ -81,21 +80,16 @@
 
 %prep
 %setup -q -n %{pkg_name}-%{version}
-
+cp -p %{SOURCE1} %{pkg_name}.cabal
 
 %build
 %ghc_lib_build
 
-
 %install
 %ghc_lib_install
 
-
 %check
-%if %{with tests}
-%{cabal} test
-%endif
-
+%cabal_test
 
 %post devel
 %ghc_pkg_recache
@@ -109,6 +103,5 @@
 
 %files devel -f %{name}-devel.files
 %defattr(-,root,root,-)
-%doc ChangeLog.md README.md
 
 %changelog

++ persistent-2.2.4.1.tar.gz -> persistent-2.6.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/persistent-2.2.4.1/ChangeLog.md 
new/persistent-2.6/ChangeLog.md
--- old/persistent-2.2.4.1/ChangeLog.md 2016-03-08 09:18:27.0 +0100
+++ new/persistent-2.6/ChangeLog.md 2016-08-10 05:29:36.0 +0200
@@ -1,3 +1,12 @@
+## 2.6
+
+* Add `connUpsertSql` type for providing backend-specific upsert sql support.
+
+## 2.5
+
+* read/write typeclass split
+* add insertOrGet convenience function to PersistUnique
+
 ## 2.2.4.1
 
 * Documentation updates [#515](https://github.com/yesodweb/persistent/pull/515)
@@ -14,6 +23,7 @@
 ## 2.2.2
 
 * Add liftSqlPersistMPool function
+* support http-api-data for url serialization
 
 ## 2.2.1
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/persistent-2.2.4.1/Database/Persist/Class/DeleteCascade.hs 
new/persistent-2.6/Database/Persist/Class/DeleteCascade.hs
--- old/persistent-2.2.4.1/Database/Persist/Class/DeleteCascade.hs  
2016-03-08 09:18:27.0 +0100
+++ new/persistent-2.6/Database/Persist/Class/DeleteCascade.hs  2016-07-17 
04:15:37.0 +0200
@@ -18,7 +18,7 @@
 -- | For combinations of backends and entities that support
 -- cascade-deletion. “Cascade-deletion” means that entries that depend on
 -- other entries to be deleted will be deleted as well.
-class (PersistStore backend, PersistEntity record, backend ~ 
PersistEntityBackend record)
+class (PersistStoreWrite backend, PersistEntity record, BaseBackend backend ~ 
PersistEntityBackend record)
   => DeleteCascade record backend where
 
 -- | Perform cascade-deletion of single database
@@ -26,7 +26,7 @@
 deleteCascade :: MonadIO m => Key record -> ReaderT backend m ()
 
 -- | Cascade-deletion of entries satisfying given filters.
-deleteCascadeWhere :: (MonadIO m, DeleteCascade record backend, PersistQuery 
backend)
+deleteCascadeWhere :: (MonadIO m, DeleteCascade record backend, 
PersistQueryWrite backend)
=> [Filter record] -> ReaderT backend m ()
 deleteCascadeWhere filts = do
 srcRes <- selectKeysRes fi

commit ghc-persistent for openSUSE:Factory

2016-07-20 Thread h_root
Hello community,

here is the log from the commit of package ghc-persistent for openSUSE:Factory 
checked in at 2016-07-21 08:15:57

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


Package is "ghc-persistent"

Changes:

--- /work/SRC/openSUSE:Factory/ghc-persistent/ghc-persistent.changes
2016-03-29 09:56:16.0 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-persistent.new/ghc-persistent.changes   
2016-07-21 08:16:03.0 +0200
@@ -1,0 +2,5 @@
+Sun Jul 10 17:23:24 UTC 2016 - psim...@suse.com
+
+- Update to version 2.2.4.1 revision 0 with cabal2obs.
+
+---



Other differences:
--
++ ghc-persistent.spec ++
--- /var/tmp/diff_new_pack.yqftbe/_old  2016-07-21 08:16:05.0 +0200
+++ /var/tmp/diff_new_pack.yqftbe/_new  2016-07-21 08:16:05.0 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-persistent
 #
-# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
+# 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
@@ -17,22 +17,16 @@
 
 
 %global pkg_name persistent
-
 %bcond_with tests
-
-Name:   ghc-persistent
+Name:   ghc-%{pkg_name}
 Version:2.2.4.1
 Release:0
 Summary:Type-safe, multi-backend data serialization
 License:MIT
 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
-BuildRoot:  %{_tmppath}/%{name}-%{version}-build
-
 BuildRequires:  ghc-Cabal-devel
-BuildRequires:  ghc-rpm-macros
 # Begin cabal-rpm deps:
 BuildRequires:  ghc-aeson-devel
 BuildRequires:  ghc-attoparsec-devel
@@ -53,6 +47,7 @@
 BuildRequires:  ghc-path-pieces-devel
 BuildRequires:  ghc-resource-pool-devel
 BuildRequires:  ghc-resourcet-devel
+BuildRequires:  ghc-rpm-macros
 BuildRequires:  ghc-scientific-devel
 BuildRequires:  ghc-silently-devel
 BuildRequires:  ghc-tagged-devel
@@ -63,6 +58,7 @@
 BuildRequires:  ghc-transformers-devel
 BuildRequires:  ghc-unordered-containers-devel
 BuildRequires:  ghc-vector-devel
+BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 %if %{with tests}
 BuildRequires:  ghc-hspec-devel
 %endif
@@ -72,33 +68,35 @@
 Hackage documentation generation is not reliable. For up to date documentation,
 please see: .
 
-
 %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}
-Requires:   %{name} = %{version}-%{release}
 
 %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
+%{cabal} test
 %endif
 
+
 %post devel
 %ghc_pkg_recache
 
@@ -111,6 +109,6 @@
 
 %files devel -f %{name}-devel.files
 %defattr(-,root,root,-)
-%doc README.md
+%doc ChangeLog.md README.md
 
 %changelog




commit ghc-persistent for openSUSE:Factory

2016-03-29 Thread h_root
Hello community,

here is the log from the commit of package ghc-persistent for openSUSE:Factory 
checked in at 2016-03-29 09:56:14

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


Package is "ghc-persistent"

Changes:

--- /work/SRC/openSUSE:Factory/ghc-persistent/ghc-persistent.changes
2015-12-23 08:50:14.0 +0100
+++ /work/SRC/openSUSE:Factory/.ghc-persistent.new/ghc-persistent.changes   
2016-03-29 09:56:16.0 +0200
@@ -1,0 +2,5 @@
+Thu Mar 10 08:55:14 UTC 2016 - mimi...@gmail.com
+
+- update to 2.2.4.1 
+
+---

Old:

  persistent-2.2.4.tar.gz

New:

  persistent-2.2.4.1.tar.gz



Other differences:
--
++ ghc-persistent.spec ++
--- /var/tmp/diff_new_pack.Vx1upC/_old  2016-03-29 09:56:17.0 +0200
+++ /var/tmp/diff_new_pack.Vx1upC/_new  2016-03-29 09:56:17.0 +0200
@@ -21,7 +21,7 @@
 %bcond_with tests
 
 Name:   ghc-persistent
-Version:2.2.4
+Version:2.2.4.1
 Release:0
 Summary:Type-safe, multi-backend data serialization
 License:MIT

++ persistent-2.2.4.tar.gz -> persistent-2.2.4.1.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/persistent-2.2.4/ChangeLog.md 
new/persistent-2.2.4.1/ChangeLog.md
--- old/persistent-2.2.4/ChangeLog.md   2015-12-14 12:26:57.0 +0100
+++ new/persistent-2.2.4.1/ChangeLog.md 2016-03-08 09:18:27.0 +0100
@@ -1,3 +1,7 @@
+## 2.2.4.1
+
+* Documentation updates [#515](https://github.com/yesodweb/persistent/pull/515)
+
 ## 2.2.4
 
 * Workaround for side-exiting transformers in `runSqlConn` 
[#516](https://github.com/yesodweb/persistent/issues/516)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/persistent-2.2.4/Database/Persist/Class/DeleteCascade.hs 
new/persistent-2.2.4.1/Database/Persist/Class/DeleteCascade.hs
--- old/persistent-2.2.4/Database/Persist/Class/DeleteCascade.hs
2015-12-14 12:26:57.0 +0100
+++ new/persistent-2.2.4.1/Database/Persist/Class/DeleteCascade.hs  
2016-03-08 09:18:27.0 +0100
@@ -15,10 +15,17 @@
 import Control.Monad.Reader (ReaderT, ask, runReaderT)
 import Data.Acquire (with)
 
+-- | For combinations of backends and entities that support
+-- cascade-deletion. “Cascade-deletion” means that entries that depend on
+-- other entries to be deleted will be deleted as well.
 class (PersistStore backend, PersistEntity record, backend ~ 
PersistEntityBackend record)
   => DeleteCascade record backend where
+
+-- | Perform cascade-deletion of single database
+-- entry.
 deleteCascade :: MonadIO m => Key record -> ReaderT backend m ()
 
+-- | Cascade-deletion of entries satisfying given filters.
 deleteCascadeWhere :: (MonadIO m, DeleteCascade record backend, PersistQuery 
backend)
=> [Filter record] -> ReaderT backend m ()
 deleteCascadeWhere filts = do
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/persistent-2.2.4/Database/Persist/Class/PersistEntity.hs 
new/persistent-2.2.4.1/Database/Persist/Class/PersistEntity.hs
--- old/persistent-2.2.4/Database/Persist/Class/PersistEntity.hs
2015-12-14 12:26:57.0 +0100
+++ new/persistent-2.2.4.1/Database/Persist/Class/PersistEntity.hs  
2016-03-08 09:18:27.0 +0100
@@ -44,60 +44,63 @@
 -- A Database 'Entity' (A row in SQL, a document in MongoDB, etc)
 -- corresponds to a 'Key' plus a Haskell record.
 --
--- For every Haskell record type stored in the database there is a 
corresponding 'PersistEntity' instance.
--- An instance of PersistEntity contains meta-data for the record.
--- PersistEntity also helps abstract over different record types.
--- That way the same query interface can return a 'PersistEntity', with each 
query returning different types of Haskell records.
---
--- Some advanced type system capabilities are used to make this process 
type-safe.
--- Persistent users usually don't need to understand the class associated data 
and functions.
+-- For every Haskell record type stored in the database there is a
+-- corresponding 'PersistEntity' instance. An instance of PersistEntity
+-- contains meta-data for the record.  PersistEntity also helps abstract
+-- over different record types. That way the same query interface can return
+-- a 'PersistEntity', with each query returning different types of Haskell
+-- records.
+--
+-- Some advanced type system capabilities are used to make this process
+-- type-safe. Persistent users usually don't need to understand the class
+-- associated data and f

commit ghc-persistent for openSUSE:Factory

2015-12-22 Thread h_root
Hello community,

here is the log from the commit of package ghc-persistent for openSUSE:Factory 
checked in at 2015-12-23 08:50:11

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


Package is "ghc-persistent"

Changes:

--- /work/SRC/openSUSE:Factory/ghc-persistent/ghc-persistent.changes
2015-12-09 22:17:18.0 +0100
+++ /work/SRC/openSUSE:Factory/.ghc-persistent.new/ghc-persistent.changes   
2015-12-23 08:50:14.0 +0100
@@ -1,0 +2,6 @@
+Thu Dec 17 10:42:36 UTC 2015 - mimi...@gmail.com
+
+- update to 2.2.4
+* Workaround for side-exiting transformers in runSqlConn
+
+---

Old:

  persistent-2.2.3.tar.gz

New:

  persistent-2.2.4.tar.gz



Other differences:
--
++ ghc-persistent.spec ++
--- /var/tmp/diff_new_pack.kNwmVk/_old  2015-12-23 08:50:15.0 +0100
+++ /var/tmp/diff_new_pack.kNwmVk/_new  2015-12-23 08:50:15.0 +0100
@@ -21,7 +21,7 @@
 %bcond_with tests
 
 Name:   ghc-persistent
-Version:2.2.3
+Version:2.2.4
 Release:0
 Summary:Type-safe, multi-backend data serialization
 License:MIT

++ persistent-2.2.3.tar.gz -> persistent-2.2.4.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/persistent-2.2.3/ChangeLog.md 
new/persistent-2.2.4/ChangeLog.md
--- old/persistent-2.2.3/ChangeLog.md   2015-11-29 18:59:28.0 +0100
+++ new/persistent-2.2.4/ChangeLog.md   2015-12-14 12:26:57.0 +0100
@@ -1,3 +1,7 @@
+## 2.2.4
+
+* Workaround for side-exiting transformers in `runSqlConn` 
[#516](https://github.com/yesodweb/persistent/issues/516)
+
 ## 2.2.3
 
 * PersistField instance for Natural
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/persistent-2.2.3/Database/Persist/Sql/Run.hs 
new/persistent-2.2.4/Database/Persist/Sql/Run.hs
--- old/persistent-2.2.3/Database/Persist/Sql/Run.hs2015-11-15 
15:31:39.0 +0100
+++ new/persistent-2.2.4/Database/Persist/Sql/Run.hs2015-12-14 
12:26:57.0 +0100
@@ -50,13 +50,13 @@
 {-# INLINABLE withResourceTimeout #-}
 
 runSqlConn :: MonadBaseControl IO m => SqlPersistT m a -> SqlBackend -> m a
-runSqlConn r conn = do
+runSqlConn r conn = control $ \runInIO -> mask $ \restore -> do
 let getter = getStmtConn conn
-liftBase $ connBegin conn getter
+restore $ connBegin conn getter
 x <- onException
-(runReaderT r conn)
-(liftBase $ connRollback conn getter)
-liftBase $ connCommit conn getter
+(restore $ runInIO $ runReaderT r conn)
+(restore $ connRollback conn getter)
+restore $ connCommit conn getter
 return x
 
 runSqlPersistM :: SqlPersistM a -> SqlBackend -> IO a
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/persistent-2.2.3/persistent.cabal 
new/persistent-2.2.4/persistent.cabal
--- old/persistent-2.2.3/persistent.cabal   2015-11-29 18:59:28.0 
+0100
+++ new/persistent-2.2.4/persistent.cabal   2015-12-14 12:26:57.0 
+0100
@@ -1,5 +1,5 @@
 name:persistent
-version: 2.2.3
+version: 2.2.4
 license: MIT
 license-file:LICENSE
 author:  Michael Snoyman 




commit ghc-persistent for openSUSE:Factory

2015-12-09 Thread h_root
Hello community,

here is the log from the commit of package ghc-persistent for openSUSE:Factory 
checked in at 2015-12-09 19:52:49

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


Package is "ghc-persistent"

Changes:

--- /work/SRC/openSUSE:Factory/ghc-persistent/ghc-persistent.changes
2015-11-26 17:02:57.0 +0100
+++ /work/SRC/openSUSE:Factory/.ghc-persistent.new/ghc-persistent.changes   
2015-12-09 22:17:18.0 +0100
@@ -1,0 +2,7 @@
+Mon Dec  7 11:15:00 UTC 2015 - mimi...@gmail.com
+
+- update to 2.2.3
+* PersistField instance for Natural
+* better oracle support in odbc
+
+---

Old:

  persistent-2.2.2.1.tar.gz

New:

  persistent-2.2.3.tar.gz



Other differences:
--
++ ghc-persistent.spec ++
--- /var/tmp/diff_new_pack.ckPCpW/_old  2015-12-09 22:17:19.0 +0100
+++ /var/tmp/diff_new_pack.ckPCpW/_new  2015-12-09 22:17:19.0 +0100
@@ -15,17 +15,18 @@
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
 
+
 %global pkg_name persistent
 
 %bcond_with tests
 
 Name:   ghc-persistent
-Version:2.2.2.1
+Version:2.2.3
 Release:0
 Summary:Type-safe, multi-backend data serialization
+License:MIT
 Group:  System/Libraries
 
-License:MIT
 Url:https://hackage.haskell.org/package/%{pkg_name}
 Source0:
https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
@@ -87,37 +88,29 @@
 %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,root,-)
 %doc README.md
 
-
 %changelog

++ persistent-2.2.2.1.tar.gz -> persistent-2.2.3.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/persistent-2.2.2.1/ChangeLog.md 
new/persistent-2.2.3/ChangeLog.md
--- old/persistent-2.2.2.1/ChangeLog.md 2015-10-27 20:10:26.0 +0100
+++ new/persistent-2.2.3/ChangeLog.md   2015-11-29 18:59:28.0 +0100
@@ -1,3 +1,12 @@
+## 2.2.3
+
+* PersistField instance for Natural
+* better oracle support in odbc
+
+## 2.2.2
+
+* Add liftSqlPersistMPool function
+
 ## 2.2.1
 
 * Migration failure message with context
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/persistent-2.2.2.1/Database/Persist/Class/PersistField.hs 
new/persistent-2.2.3/Database/Persist/Class/PersistField.hs
--- old/persistent-2.2.2.1/Database/Persist/Class/PersistField.hs   
2015-11-15 15:31:39.0 +0100
+++ new/persistent-2.2.3/Database/Persist/Class/PersistField.hs 2015-11-29 
18:59:28.0 +0100
@@ -55,6 +55,10 @@
 import System.Locale (defaultTimeLocale)
 #endif
 
+#if MIN_VERSION_base(4,8,0)
+import Numeric.Natural (Natural)
+#endif
+
 -- | A value which can be marshalled to and from a 'PersistValue'.
 class PersistField a where
 toPersistValue :: a -> PersistValue
@@ -189,7 +193,7 @@
 [(a, "")] -> Right $ toRational (a :: Pico)
 _ -> Left $ "Can not read " <> t <> " as Rational (Pico in fact)"
   fromPersistValue (PersistInt64 i) = Right $ fromIntegral i
-  fromPersistValue (PersistByteString bs) = case double $ T.cons '0' $ 
T.decodeUtf8With T.lenientDecode bs of 
+  fromPersistValue (PersistByteString bs) = case double $ T.cons '0' $ 
T.decodeUtf8With T.lenientDecode bs of
   Right (ret,"") -> Right $ 
toRational ret
   Right (a,b) -> Left $ "Invalid 
bytestring[" <> T.pack (show bs) <> "]: expected a double but returned " <> 
T.pack (show (a,b))
   Left xs -> Left $ "Invalid 
bytestring[" <> T.pack (show bs) <> "]: expected a double but returned " <> 
T.pack (show xs)
@@ -199,7 +203,7 @@
 toPersistValue = PersistBool
 fromPersistValue (PersistBool b) = Right b
 fromPersistValue (PersistInt64 i) = Right $ i /= 0
-fromPersistValue (PersistByteString i) = case readInt i of 
+fromPersistValue (PersistByteString i) = case readInt i of
Just (0,"") -> Right False
Just (1,"") -> Right True
xs -> error $ "PersistField 
Bool failed parsing PersistByteSt

commit ghc-persistent for openSUSE:Factory

2015-11-26 Thread h_root
Hello community,

here is the log from the commit of package ghc-persistent for openSUSE:Factory 
checked in at 2015-11-26 17:02:56

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


Package is "ghc-persistent"

Changes:

New Changes file:

--- /dev/null   2015-11-02 12:10:47.524024255 +0100
+++ /work/SRC/openSUSE:Factory/.ghc-persistent.new/ghc-persistent.changes   
2015-11-26 17:02:57.0 +0100
@@ -0,0 +1,5 @@
+---
+Thu Nov 19 14:13:56 UTC 2015 - mimi...@gmail.com
+
+- initial commit
+

New:

  ghc-persistent.changes
  ghc-persistent.spec
  persistent-2.2.2.1.tar.gz



Other differences:
--
++ ghc-persistent.spec ++
#
# spec file for package ghc-persistent
#
# Copyright (c) 2015 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 persistent

%bcond_with tests

Name:   ghc-persistent
Version:2.2.2.1
Release:0
Summary:Type-safe, multi-backend data serialization
Group:  System/Libraries

License:MIT
Url:https://hackage.haskell.org/package/%{pkg_name}
Source0:
https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
BuildRoot:  %{_tmppath}/%{name}-%{version}-build

BuildRequires:  ghc-Cabal-devel
BuildRequires:  ghc-rpm-macros
# Begin cabal-rpm deps:
BuildRequires:  ghc-aeson-devel
BuildRequires:  ghc-attoparsec-devel
BuildRequires:  ghc-base64-bytestring-devel
BuildRequires:  ghc-blaze-html-devel
BuildRequires:  ghc-blaze-markup-devel
BuildRequires:  ghc-bytestring-devel
BuildRequires:  ghc-conduit-devel
BuildRequires:  ghc-containers-devel
BuildRequires:  ghc-exceptions-devel
BuildRequires:  ghc-fast-logger-devel
BuildRequires:  ghc-http-api-data-devel
BuildRequires:  ghc-lifted-base-devel
BuildRequires:  ghc-monad-control-devel
BuildRequires:  ghc-monad-logger-devel
BuildRequires:  ghc-mtl-devel
BuildRequires:  ghc-old-locale-devel
BuildRequires:  ghc-path-pieces-devel
BuildRequires:  ghc-resource-pool-devel
BuildRequires:  ghc-resourcet-devel
BuildRequires:  ghc-scientific-devel
BuildRequires:  ghc-silently-devel
BuildRequires:  ghc-tagged-devel
BuildRequires:  ghc-template-haskell-devel
BuildRequires:  ghc-text-devel
BuildRequires:  ghc-time-devel
BuildRequires:  ghc-transformers-base-devel
BuildRequires:  ghc-transformers-devel
BuildRequires:  ghc-unordered-containers-devel
BuildRequires:  ghc-vector-devel
%if %{with tests}
BuildRequires:  ghc-hspec-devel
%endif
# End cabal-rpm deps

%description
Hackage documentation generation is not reliable. For up to date documentation,
please see: .


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

%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,root,-)
%doc README.md


%changelog