commit ghc-persistent-template for openSUSE:Factory

2020-09-27 Thread root
Hello community,

here is the log from the commit of package ghc-persistent-template for 
openSUSE:Factory checked in at 2020-09-27 11:48:59

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


Package is "ghc-persistent-template"

Sun Sep 27 11:48:59 2020 rev:26 rq:835601 version:2.8.2.3

Changes:

--- 
/work/SRC/openSUSE:Factory/ghc-persistent-template/ghc-persistent-template.changes
  2020-08-28 21:36:13.984748106 +0200
+++ 
/work/SRC/openSUSE:Factory/.ghc-persistent-template.new.4249/ghc-persistent-template.changes
2020-09-27 11:49:00.839994159 +0200
@@ -1,0 +2,6 @@
+Sat Sep 12 16:16:26 UTC 2020 - psim...@suse.com
+
+- Update persistent-template to version 2.8.2.3 revision 1.
+  Upstream has revised the Cabal build instructions on Hackage.
+
+---

New:

  persistent-template.cabal



Other differences:
--
++ ghc-persistent-template.spec ++
--- /var/tmp/diff_new_pack.2dCORp/_old  2020-09-27 11:49:01.851995249 +0200
+++ /var/tmp/diff_new_pack.2dCORp/_new  2020-09-27 11:49:01.851995249 +0200
@@ -25,6 +25,7 @@
 License:MIT
 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-bytestring-devel
@@ -62,7 +63,7 @@
 
 %prep
 %autosetup -n %{pkg_name}-%{version}
-cabal-tweak-dep-ver aeson '< 1.5' '< 2'
+cp -p %{SOURCE1} %{pkg_name}.cabal
 
 %build
 %ghc_lib_build

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

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

library
build-depends:   base >= 4.10  && < 5
   , persistent   >= 2.10  && < 3
   , aeson>= 1.0   && < 1.6
   , bytestring   >= 0.10
   , containers
   , http-api-data>= 0.3.7
   , monad-control>= 1.0   && < 1.1
   , monad-logger
   , path-pieces
   , template-haskell >= 2.11
   , text >= 1.2
   , th-lift-instances>= 0.1.14&& < 0.2
   , transformers >= 0.5   && < 0.6
   , unordered-containers
exposed-modules: Database.Persist.TH
ghc-options: -Wall
default-language: Haskell2010

test-suite test
type:exitcode-stdio-1.0
main-is: main.hs
hs-source-dirs:  test
other-modules:   TemplateTestImports
ghc-options: -Wall

build-depends:   base >= 4.10 && < 5
   , persistent
   , persistent-template
   , aeson
   , bytestring
   , hspec>= 2.4
   , QuickCheck
   , text
default-language: Haskell2010

source-repository head
  type: git
  location: git://github.com/yesodweb/persistent.git

benchmark persistent-th-bench
ghc-options:  -O2
type: exitcode-stdio-1.0
main-is:  Main.hs
hs-source-dirs:   bench
build-depends:base
, persistent
, persistent-template
, criterion
, deepseq
, deepseq-generics
, file-embed
, text
, template-haskell
other-modules:Models
default-language: Haskell2010



commit ghc-persistent-template for openSUSE:Factory

2020-08-28 Thread root
Hello community,

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

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


Package is "ghc-persistent-template"

Fri Aug 28 21:36:13 2020 rev:25 rq:829382 version:2.8.2.3

Changes:

--- 
/work/SRC/openSUSE:Factory/ghc-persistent-template/ghc-persistent-template.changes
  2020-07-09 13:17:39.136944335 +0200
+++ 
/work/SRC/openSUSE:Factory/.ghc-persistent-template.new.3399/ghc-persistent-template.changes
2020-08-28 21:36:13.984748106 +0200
@@ -0,0 +1,10 @@
+---
+Wed Aug 19 08:15:34 UTC 2020 - Michel Normand 
+
+- Add _constraints with 6GB min disk space for ppc64/ppc64le
+
+---
+Tue Aug 18 10:45:43 UTC 2020 - Peter Simons 
+
+- Replace %setup -q with the more modern %autosetup macro.
+

New:

  _constraints



Other differences:
--
++ ghc-persistent-template.spec ++
--- /var/tmp/diff_new_pack.UUWNDD/_old  2020-08-28 21:36:14.548748373 +0200
+++ /var/tmp/diff_new_pack.UUWNDD/_new  2020-08-28 21:36:14.552748375 +0200
@@ -61,7 +61,7 @@
 files.
 
 %prep
-%setup -q -n %{pkg_name}-%{version}
+%autosetup -n %{pkg_name}-%{version}
 cabal-tweak-dep-ver aeson '< 1.5' '< 2'
 
 %build

++ _constraints ++

  

  ppc64
  ppc64le



  6


  





commit ghc-persistent-template for openSUSE:Factory

2020-07-09 Thread root
Hello community,

here is the log from the commit of package ghc-persistent-template for 
openSUSE:Factory checked in at 2020-07-09 13:17:34

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


Package is "ghc-persistent-template"

Thu Jul  9 13:17:34 2020 rev:24 rq:819585 version:2.8.2.3

Changes:

--- 
/work/SRC/openSUSE:Factory/ghc-persistent-template/ghc-persistent-template.changes
  2020-06-19 17:17:05.658832418 +0200
+++ 
/work/SRC/openSUSE:Factory/.ghc-persistent-template.new.3060/ghc-persistent-template.changes
2020-07-09 13:17:39.136944335 +0200
@@ -1 +1 @@

+--
@@ -5 +4,0 @@
-



Other differences:
--



commit ghc-persistent-template for openSUSE:Factory

2020-06-19 Thread root
Hello community,

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

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


Package is "ghc-persistent-template"

Fri Jun 19 17:17:05 2020 rev:23 rq:815153 version:2.8.2.3

Changes:

--- 
/work/SRC/openSUSE:Factory/ghc-persistent-template/ghc-persistent-template.changes
  2020-03-09 14:16:49.330642593 +0100
+++ 
/work/SRC/openSUSE:Factory/.ghc-persistent-template.new.3606/ghc-persistent-template.changes
2020-06-19 17:17:05.658832418 +0200
@@ -2 +2 @@
-Sat Feb  8 03:06:14 UTC 2020 - psim...@suse.com
+Tue Jun  9 10:14:33 UTC 2020 - psim...@suse.com
@@ -4,2 +4 @@
-- Update persistent-template to version 2.8.2.3.
-  ## 2.8.2.3
+- Add persistent-template at version 2.8.2.3.
@@ -7,192 +5,0 @@
-  * Require extensions in a more friendly manner. 
[#1030](https://github.com/yesodweb/persistent/pull/1030)
-  * Specify a strategy for all deriving clauses, which avoids the 
`-Wmissing-deriving-strategy` warning introduced in GHC 8.8.2. 
[#1030](https://github.com/yesodweb/persistent/pull/1030)
-
-  ## 2.8.2.2
-
-  * Fix the `mkPersist` function to not require importing the classes 
explicitly. [#1027](https://github.com/yesodweb/persistent/pull/1027)
-

-Fri Feb  7 08:06:51 UTC 2020 - psim...@suse.com
-
-- Update persistent-template to version 2.8.2.1.
-  ## 2.8.2.1
-
-  * Fix the test-suite for persistent-template. 
[#1023](https://github.com/yesodweb/persistent/pull/1023)
-

-Wed Jan 29 03:01:47 UTC 2020 - psim...@suse.com
-
-- Update persistent-template to version 2.8.2.
-  ## 2.8.2
-
-  * Add `fieldError` to the export list of `Database.Persist.TH` 
[#1008](https://github.com/yesodweb/persistent/pull/1008)
-
-  ## 2.8.1
-
-  * Let the user pass instances that will be derived for record and for key 
types (https://github.com/yesodweb/persistent/pull/990
-

-Tue Jan 14 03:03:07 UTC 2020 - psim...@suse.com
-
-- Update persistent-template to version 2.8.0.1.
-  ## 2.8.0.1
-
-  * Small optimization/code cleanup to generated Template Haskell code size, 
by slimming the implementation of to/fromPersistValue for Entities. 
[#1014](https://github.com/yesodweb/persistent/pull/1014)
-

-Sat Jan  4 03:01:38 UTC 2020 - psim...@suse.com
-
-- Update persistent-template to version 2.8.0.
-  ## 2.8.0
-
-  * Reduces the amount of code generated by Template Haskell. The amount of 
code generated for a certain function was O(N^2) with respect to the number of 
fields on a given Entity. This change shows dramatic improvements in benchmarks 
for compiling Persistent models. [#]()
-  * Drops support for GHC 8.0, so that `DerivingStrategies` can be used by 
`persistent-template`
-  * `persistent-template` now requires `DerivingStrategies`, 
`GeneralizedNewtypeDeriving`, and `StandaloneDeriving` to be enabled in the 
file where Persistent entities are created
-  * Fixes a long-standing issue where persistent-template would fail when 
`DeriveAnyClass` was enabled (See #578)
-  * [#1002](https://github.com/yesodweb/persistent/pull/1002)
-

-Thu Jan  2 03:01:46 UTC 2020 - psim...@suse.com
-
-- Update persistent-template to version 2.7.4.
-  ## 2.7.4
-
-  * Remove an overlapping instance for `Lift a`. 
[#998](https://github.com/yesodweb/persistent/pull/998)
-

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

-Tue Oct 29 07:32:27 UTC 2019 - psim...@suse.com
-
-- Update persistent-template to version 2.7.3.
-  ## Unreleased changes
-
-  ## 2.7.3
-
-  * Update module documentation for `Database.Persist.TH` to better describe 
the purpose of the module 
[#968](https://github.com/yesodweb/persistent/pull/968)
-  * Support template-haskell-2.15 
[#959](https://github.com/yesodweb/persistent/pull/959)
-

-Thu Jul 18 08:17:38 UTC 2019 - psim...@suse.com
-
-- Update persistent-template to version 2.7.2.
-  ## 2.7.2
-
-  * Expose the knot tying logic of `parseReferences` so that users can build
-migrations from independently define entities at runtime 
[#932](https://github.com/yesodweb/persistent/pull/932)
-

-Tue May  7 02:03:24 UTC 2019 - psim..

commit ghc-persistent-template for openSUSE:Factory

2020-03-09 Thread root
Hello community,

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

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


Package is "ghc-persistent-template"

Mon Mar  9 14:16:46 2020 rev:22 rq:780030 version:2.8.2.3

Changes:

--- 
/work/SRC/openSUSE:Factory/ghc-persistent-template/ghc-persistent-template.changes
  2020-01-29 13:13:23.442016774 +0100
+++ 
/work/SRC/openSUSE:Factory/.ghc-persistent-template.new.26092/ghc-persistent-template.changes
   2020-03-09 14:16:49.330642593 +0100
@@ -1,0 +2,33 @@
+Sat Feb  8 03:06:14 UTC 2020 - psim...@suse.com
+
+- Update persistent-template to version 2.8.2.3.
+  ## 2.8.2.3
+
+  * Require extensions in a more friendly manner. 
[#1030](https://github.com/yesodweb/persistent/pull/1030)
+  * Specify a strategy for all deriving clauses, which avoids the 
`-Wmissing-deriving-strategy` warning introduced in GHC 8.8.2. 
[#1030](https://github.com/yesodweb/persistent/pull/1030)
+
+  ## 2.8.2.2
+
+  * Fix the `mkPersist` function to not require importing the classes 
explicitly. [#1027](https://github.com/yesodweb/persistent/pull/1027)
+
+---
+Fri Feb  7 08:06:51 UTC 2020 - psim...@suse.com
+
+- Update persistent-template to version 2.8.2.1.
+  ## 2.8.2.1
+
+  * Fix the test-suite for persistent-template. 
[#1023](https://github.com/yesodweb/persistent/pull/1023)
+
+---
+Wed Jan 29 03:01:47 UTC 2020 - psim...@suse.com
+
+- Update persistent-template to version 2.8.2.
+  ## 2.8.2
+
+  * Add `fieldError` to the export list of `Database.Persist.TH` 
[#1008](https://github.com/yesodweb/persistent/pull/1008)
+
+  ## 2.8.1
+
+  * Let the user pass instances that will be derived for record and for key 
types (https://github.com/yesodweb/persistent/pull/990
+
+---

Old:

  persistent-template-2.8.0.1.tar.gz

New:

  persistent-template-2.8.2.3.tar.gz



Other differences:
--
++ ghc-persistent-template.spec ++
--- /var/tmp/diff_new_pack.yNWYRn/_old  2020-03-09 14:16:50.490643358 +0100
+++ /var/tmp/diff_new_pack.yNWYRn/_new  2020-03-09 14:16:50.510643370 +0100
@@ -19,7 +19,7 @@
 %global pkg_name persistent-template
 %bcond_with tests
 Name:   ghc-%{pkg_name}
-Version:2.8.0.1
+Version:2.8.2.3
 Release:0
 Summary:Type-safe, non-relational, multi-backend persistence
 License:MIT

++ persistent-template-2.8.0.1.tar.gz -> persistent-template-2.8.2.3.tar.gz 
++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/persistent-template-2.8.0.1/ChangeLog.md 
new/persistent-template-2.8.2.3/ChangeLog.md
--- old/persistent-template-2.8.0.1/ChangeLog.md2020-01-13 
20:53:42.0 +0100
+++ new/persistent-template-2.8.2.3/ChangeLog.md2020-02-08 
02:16:15.0 +0100
@@ -1,5 +1,26 @@
 ## Unreleased changes
 
+## 2.8.2.3
+
+* Require extensions in a more friendly manner. 
[#1030](https://github.com/yesodweb/persistent/pull/1030)
+* Specify a strategy for all deriving clauses, which avoids the 
`-Wmissing-deriving-strategy` warning introduced in GHC 8.8.2. 
[#1030](https://github.com/yesodweb/persistent/pull/1030)
+
+## 2.8.2.2
+
+* Fix the `mkPersist` function to not require importing the classes 
explicitly. [#1027](https://github.com/yesodweb/persistent/pull/1027)
+
+## 2.8.2.1
+
+* Fix the test-suite for persistent-template. 
[#1023](https://github.com/yesodweb/persistent/pull/1023)
+
+## 2.8.2
+
+* Add `fieldError` to the export list of `Database.Persist.TH` 
[#1008](https://github.com/yesodweb/persistent/pull/1008)
+
+## 2.8.1
+
+* Let the user pass instances that will be derived for record and for key 
types (https://github.com/yesodweb/persistent/pull/990
+
 ## 2.8.0.1
 
 * Small optimization/code cleanup to generated Template Haskell code size, by 
slimming the implementation of to/fromPersistValue for Entities. 
[#1014](https://github.com/yesodweb/persistent/pull/1014)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/persistent-template-2.8.0.1/Database/Persist/TH.hs 
new/persistent-template-2.8.2.3/Database/Persist/TH.hs
--- old/persistent-template-2.8.0.1/Database/Persist/TH.hs  2020-01-13 
20:53:42.0 +0100
+++ new/persistent-template-2.8.2.3/Database/Persist/TH.hs  2020-02-08 
02:16:15.0 +0100
@@ -30,6 +30,7 @@
 , mpsPrefixFields
 , mpsEntityJSON
 , mpsGenerateLenses
+, mpsDeri

commit ghc-persistent-template for openSUSE:Factory

2020-01-29 Thread root
Hello community,

here is the log from the commit of package ghc-persistent-template for 
openSUSE:Factory checked in at 2020-01-29 13:13:02

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


Package is "ghc-persistent-template"

Wed Jan 29 13:13:02 2020 rev:21 rq:766987 version:2.8.0.1

Changes:

--- 
/work/SRC/openSUSE:Factory/ghc-persistent-template/ghc-persistent-template.changes
  2019-12-27 13:56:18.640743603 +0100
+++ 
/work/SRC/openSUSE:Factory/.ghc-persistent-template.new.26092/ghc-persistent-template.changes
   2020-01-29 13:13:23.442016774 +0100
@@ -1,0 +2,28 @@
+Tue Jan 14 03:03:07 UTC 2020 - psim...@suse.com
+
+- Update persistent-template to version 2.8.0.1.
+  ## 2.8.0.1
+
+  * Small optimization/code cleanup to generated Template Haskell code size, 
by slimming the implementation of to/fromPersistValue for Entities. 
[#1014](https://github.com/yesodweb/persistent/pull/1014)
+
+---
+Sat Jan  4 03:01:38 UTC 2020 - psim...@suse.com
+
+- Update persistent-template to version 2.8.0.
+  ## 2.8.0
+
+  * Reduces the amount of code generated by Template Haskell. The amount of 
code generated for a certain function was O(N^2) with respect to the number of 
fields on a given Entity. This change shows dramatic improvements in benchmarks 
for compiling Persistent models. [#]()
+  * Drops support for GHC 8.0, so that `DerivingStrategies` can be used by 
`persistent-template`
+  * `persistent-template` now requires `DerivingStrategies`, 
`GeneralizedNewtypeDeriving`, and `StandaloneDeriving` to be enabled in the 
file where Persistent entities are created
+  * Fixes a long-standing issue where persistent-template would fail when 
`DeriveAnyClass` was enabled (See #578)
+  * [#1002](https://github.com/yesodweb/persistent/pull/1002)
+
+---
+Thu Jan  2 03:01:46 UTC 2020 - psim...@suse.com
+
+- Update persistent-template to version 2.7.4.
+  ## 2.7.4
+
+  * Remove an overlapping instance for `Lift a`. 
[#998](https://github.com/yesodweb/persistent/pull/998)
+
+---

Old:

  persistent-template-2.7.3.tar.gz

New:

  persistent-template-2.8.0.1.tar.gz



Other differences:
--
++ ghc-persistent-template.spec ++
--- /var/tmp/diff_new_pack.Y3rSOO/_old  2020-01-29 13:13:27.758018981 +0100
+++ /var/tmp/diff_new_pack.Y3rSOO/_new  2020-01-29 13:13:27.758018981 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-persistent-template
 #
-# 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-template
 %bcond_with tests
 Name:   ghc-%{pkg_name}
-Version:2.7.3
+Version:2.8.0.1
 Release:0
 Summary:Type-safe, non-relational, multi-backend persistence
 License:MIT
@@ -37,6 +37,7 @@
 BuildRequires:  ghc-rpm-macros
 BuildRequires:  ghc-template-haskell-devel
 BuildRequires:  ghc-text-devel
+BuildRequires:  ghc-th-lift-instances-devel
 BuildRequires:  ghc-transformers-devel
 BuildRequires:  ghc-unordered-containers-devel
 %if %{with tests}

++ persistent-template-2.7.3.tar.gz -> persistent-template-2.8.0.1.tar.gz 
++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/persistent-template-2.7.3/ChangeLog.md 
new/persistent-template-2.8.0.1/ChangeLog.md
--- old/persistent-template-2.7.3/ChangeLog.md  2019-10-28 16:58:53.0 
+0100
+++ new/persistent-template-2.8.0.1/ChangeLog.md2020-01-13 
20:53:42.0 +0100
@@ -1,5 +1,21 @@
 ## Unreleased changes
 
+## 2.8.0.1
+
+* Small optimization/code cleanup to generated Template Haskell code size, by 
slimming the implementation of to/fromPersistValue for Entities. 
[#1014](https://github.com/yesodweb/persistent/pull/1014)
+
+## 2.8.0
+
+* Reduces the amount of code generated by Template Haskell. The amount of code 
generated for a certain function was O(N^2) with respect to the number of 
fields on a given Entity. This change shows dramatic improvements in benchmarks 
for compiling Persistent models. [#]()
+* Drops support for GHC 8.0, so that `DerivingStrategies` can be used by 
`persistent-template`
+* `persistent-template` now requires `DerivingStrategies`, 
`GeneralizedNewtypeDeriving`, and `StandaloneDeriving` to be enabled in the 
file where Persistent entities are create

commit ghc-persistent-template for openSUSE:Factory

2019-12-27 Thread root
Hello community,

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

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


Package is "ghc-persistent-template"

Fri Dec 27 13:56:16 2019 rev:20 rq:759477 version:2.7.3

Changes:

--- 
/work/SRC/openSUSE:Factory/ghc-persistent-template/ghc-persistent-template.changes
  2019-08-13 13:15:21.041504501 +0200
+++ 
/work/SRC/openSUSE:Factory/.ghc-persistent-template.new.6675/ghc-persistent-template.changes
2019-12-27 13:56:18.640743603 +0100
@@ -1,0 +2,16 @@
+Fri Nov  8 16:14:27 UTC 2019 - Peter Simons 
+
+- Drop obsolete group attributes.
+
+---
+Tue Oct 29 07:32:27 UTC 2019 - psim...@suse.com
+
+- Update persistent-template to version 2.7.3.
+  ## Unreleased changes
+
+  ## 2.7.3
+
+  * Update module documentation for `Database.Persist.TH` to better describe 
the purpose of the module 
[#968](https://github.com/yesodweb/persistent/pull/968)
+  * Support template-haskell-2.15 
[#959](https://github.com/yesodweb/persistent/pull/959)
+
+---

Old:

  persistent-template-2.7.2.tar.gz

New:

  persistent-template-2.7.3.tar.gz



Other differences:
--
++ ghc-persistent-template.spec ++
--- /var/tmp/diff_new_pack.mGv4GN/_old  2019-12-27 13:56:19.108743829 +0100
+++ /var/tmp/diff_new_pack.mGv4GN/_new  2019-12-27 13:56:19.108743829 +0100
@@ -19,11 +19,10 @@
 %global pkg_name persistent-template
 %bcond_with tests
 Name:   ghc-%{pkg_name}
-Version:2.7.2
+Version:2.7.3
 Release:0
 Summary:Type-safe, non-relational, multi-backend persistence
 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
@@ -51,7 +50,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-template-2.7.2.tar.gz -> persistent-template-2.7.3.tar.gz 
++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/persistent-template-2.7.2/ChangeLog.md 
new/persistent-template-2.7.3/ChangeLog.md
--- old/persistent-template-2.7.2/ChangeLog.md  2019-07-17 15:42:19.0 
+0200
+++ new/persistent-template-2.7.3/ChangeLog.md  2019-10-28 16:58:53.0 
+0100
@@ -1,3 +1,10 @@
+## Unreleased changes
+
+## 2.7.3
+
+* Update module documentation for `Database.Persist.TH` to better describe the 
purpose of the module [#968](https://github.com/yesodweb/persistent/pull/968)
+* Support template-haskell-2.15 
[#959](https://github.com/yesodweb/persistent/pull/959)
+
 ## 2.7.2
 
 * Expose the knot tying logic of `parseReferences` so that users can build
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/persistent-template-2.7.2/Database/Persist/TH.hs 
new/persistent-template-2.7.3/Database/Persist/TH.hs
--- old/persistent-template-2.7.2/Database/Persist/TH.hs2019-07-17 
15:42:19.0 +0200
+++ new/persistent-template-2.7.3/Database/Persist/TH.hs2019-10-28 
16:58:53.0 +0100
@@ -1,5 +1,6 @@
 {-# LANGUAGE CPP #-}
 {-# LANGUAGE FlexibleInstances #-}
+{-# LANGUAGE LambdaCase #-}
 {-# LANGUAGE OverloadedStrings #-}
 {-# LANGUAGE RankNTypes #-}
 {-# LANGUAGE RecordWildCards #-}
@@ -8,8 +9,8 @@
 {-# LANGUAGE UndecidableInstances #-}
 {-# OPTIONS_GHC -fno-warn-orphans -fno-warn-missing-fields #-}
 
--- | This module provides utilities for creating backends. Regular users do not
--- need to use this module.
+-- | This module provides the tools for defining your database schema and using
+-- it to generate Haskell data types and migrations.
 module Database.Persist.TH
 ( -- * Parse entity defs
   persistWith
@@ -53,6 +54,7 @@
 , Value (Object), (.:), (.:?)
 , eitherDecodeStrict'
 )
+import qualified Data.ByteString as BS
 import Data.Char (toLower, toUpper)
 import qualified Data.HashMap.Strict as HM
 import Data.Int (Int64)
@@ -60,19 +62,17 @@
 import qualified Data.List.NonEmpty as NEL
 import qualified Data.Map as M
 import Data.Maybe (isJust, listToMaybe, mapMaybe, fromMaybe)
-import Data.Monoid (mappend, mconcat)
+import Data.Monoid ((<>), mappend, mconcat)

commit ghc-persistent-template for openSUSE:Factory

2019-08-13 Thread root
Hello community,

here is the log from the commit of package ghc-persistent-template for 
openSUSE:Factory checked in at 2019-08-13 13:15:18

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


Package is "ghc-persistent-template"

Tue Aug 13 13:15:18 2019 rev:19 rq:721034 version:2.7.2

Changes:

--- 
/work/SRC/openSUSE:Factory/ghc-persistent-template/ghc-persistent-template.changes
  2019-05-12 11:36:14.838370263 +0200
+++ 
/work/SRC/openSUSE:Factory/.ghc-persistent-template.new.9556/ghc-persistent-template.changes
2019-08-13 13:15:21.041504501 +0200
@@ -1,0 +2,9 @@
+Thu Jul 18 08:17:38 UTC 2019 - psim...@suse.com
+
+- Update persistent-template to version 2.7.2.
+  ## 2.7.2
+
+  * Expose the knot tying logic of `parseReferences` so that users can build
+migrations from independently define entities at runtime 
[#932](https://github.com/yesodweb/persistent/pull/932)
+
+---

Old:

  persistent-template-2.7.1.tar.gz

New:

  persistent-template-2.7.2.tar.gz



Other differences:
--
++ ghc-persistent-template.spec ++
--- /var/tmp/diff_new_pack.MBYAOt/_old  2019-08-13 13:15:21.493504396 +0200
+++ /var/tmp/diff_new_pack.MBYAOt/_new  2019-08-13 13:15:21.493504396 +0200
@@ -19,7 +19,7 @@
 %global pkg_name persistent-template
 %bcond_with tests
 Name:   ghc-%{pkg_name}
-Version:2.7.1
+Version:2.7.2
 Release:0
 Summary:Type-safe, non-relational, multi-backend persistence
 License:MIT

++ persistent-template-2.7.1.tar.gz -> persistent-template-2.7.2.tar.gz 
++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/persistent-template-2.7.1/ChangeLog.md 
new/persistent-template-2.7.2/ChangeLog.md
--- old/persistent-template-2.7.1/ChangeLog.md  2019-05-07 03:35:33.0 
+0200
+++ new/persistent-template-2.7.2/ChangeLog.md  2019-07-17 15:42:19.0 
+0200
@@ -1,3 +1,8 @@
+## 2.7.2
+
+* Expose the knot tying logic of `parseReferences` so that users can build
+  migrations from independently define entities at runtime 
[#932](https://github.com/yesodweb/persistent/pull/932)
+
 ## 2.7.1
 
 * Add the `mkEntityDefList` function to work around 
[#902](https://github.com/yesodweb/persistent/issues/902). 
[#904](https://github.com/yesodweb/persistent/pull/904)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/persistent-template-2.7.1/Database/Persist/TH.hs 
new/persistent-template-2.7.2/Database/Persist/TH.hs
--- old/persistent-template-2.7.1/Database/Persist/TH.hs2019-05-07 
03:35:33.0 +0200
+++ new/persistent-template-2.7.2/Database/Persist/TH.hs2019-07-17 
15:42:19.0 +0200
@@ -40,6 +40,7 @@
   -- * Internal
 , lensPTH
 , parseReferences
+, embedEntityDefs
 , AtLeastOneUniqueKey(..)
 , OnlyOneUniqueKey(..)
 ) where
@@ -164,14 +165,20 @@
   s <- qRunIO $ TIO.hGetContents h
   return s
 
--- calls parse to Quasi.parse individual entities in isolation
--- afterwards, sets references to other entities
--- | @since 2.5.3
-parseReferences :: PersistSettings -> Text -> Q Exp
-parseReferences ps s = lift $
- map (mkEntityDefSqlTypeExp embedEntityMap entMap) noCycleEnts
+-- Takes a list of (potentially) independently defined entities and properly
+-- links all foreign keys to reference the right 'EntityDef', tying the knot
+-- between entities.
+--
+-- Allows users to define entities indepedently or in separate modules and then
+-- fix the cross-references between them at runtime to create a 'Migration'.
+--
+-- @since 2.7.2
+embedEntityDefs :: [EntityDef] -> [EntityDef]
+embedEntityDefs = snd . embedEntityDefsMap
+
+embedEntityDefsMap :: [EntityDef] -> (M.Map HaskellName EmbedEntityDef, 
[EntityDef])
+embedEntityDefsMap rawEnts = (embedEntityMap, noCycleEnts)
   where
-entMap = M.fromList $ map (\ent -> (entityHaskell ent, ent)) noCycleEnts
 noCycleEnts = map breakCycleEnt entsWithEmbeds
 -- every EntityDef could reference each-other (as an EmbedRef)
 -- let Haskell tie the knot
@@ -180,7 +187,6 @@
 setEmbedEntity ent = ent
   { entityFields = map (setEmbedField (entityHaskell ent) embedEntityMap) 
$ entityFields ent
   }
-rawEnts = parse ps s
 
 -- self references are already broken
 -- look at every emFieldEmbed to see if it refers to an already seen 
HaskellName
@@ -208,6 +214,15 @@
   where
 membed = emFieldEmbed emf
 
+-- calls parse to Quasi.parse individual entities in isolation
+-- afterwards, sets references to other entities
+-- | @si

commit ghc-persistent-template for openSUSE:Factory

2019-05-12 Thread root
Hello community,

here is the log from the commit of package ghc-persistent-template for 
openSUSE:Factory checked in at 2019-05-12 11:36:12

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


Package is "ghc-persistent-template"

Sun May 12 11:36:12 2019 rev:18 rq:701772 version:2.7.1

Changes:

--- 
/work/SRC/openSUSE:Factory/ghc-persistent-template/ghc-persistent-template.changes
  2019-04-28 20:13:29.582417002 +0200
+++ 
/work/SRC/openSUSE:Factory/.ghc-persistent-template.new.5148/ghc-persistent-template.changes
2019-05-12 11:36:14.838370263 +0200
@@ -1,0 +2,8 @@
+Tue May  7 02:03:24 UTC 2019 - psim...@suse.com
+
+- Update persistent-template to version 2.7.1.
+  ## 2.7.1
+
+  * Add the `mkEntityDefList` function to work around 
[#902](https://github.com/yesodweb/persistent/issues/902). 
[#904](https://github.com/yesodweb/persistent/pull/904)
+
+---

Old:

  persistent-template-2.7.0.tar.gz

New:

  persistent-template-2.7.1.tar.gz



Other differences:
--
++ ghc-persistent-template.spec ++
--- /var/tmp/diff_new_pack.E5xHNh/_old  2019-05-12 11:36:16.770375918 +0200
+++ /var/tmp/diff_new_pack.E5xHNh/_new  2019-05-12 11:36:16.770375918 +0200
@@ -19,7 +19,7 @@
 %global pkg_name persistent-template
 %bcond_with tests
 Name:   ghc-%{pkg_name}
-Version:2.7.0
+Version:2.7.1
 Release:0
 Summary:Type-safe, non-relational, multi-backend persistence
 License:MIT

++ persistent-template-2.7.0.tar.gz -> persistent-template-2.7.1.tar.gz 
++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/persistent-template-2.7.0/ChangeLog.md 
new/persistent-template-2.7.1/ChangeLog.md
--- old/persistent-template-2.7.0/ChangeLog.md  2019-04-17 21:50:18.0 
+0200
+++ new/persistent-template-2.7.1/ChangeLog.md  2019-05-07 03:35:33.0 
+0200
@@ -1,3 +1,7 @@
+## 2.7.1
+
+* Add the `mkEntityDefList` function to work around 
[#902](https://github.com/yesodweb/persistent/issues/902). 
[#904](https://github.com/yesodweb/persistent/pull/904)
+
 ## 2.7.0
 
 * Depends on `persistent-2.10.0` which provides the `OnlyOneUniqueKey` and 
`AtLeastOneUniqueKey` classes. Automatically generates instances for these 
classes based on how many unique keys the entity definition gets. This changes 
requires `UndecidableInstances` to be enabled on each module that generates 
entity definitions. [#885](https://github.com/yesodweb/persistent/pull/885)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/persistent-template-2.7.0/Database/Persist/TH.hs 
new/persistent-template-2.7.1/Database/Persist/TH.hs
--- old/persistent-template-2.7.0/Database/Persist/TH.hs2019-04-16 
04:46:49.0 +0200
+++ new/persistent-template-2.7.1/Database/Persist/TH.hs2019-05-07 
03:35:33.0 +0200
@@ -32,6 +32,7 @@
 , mkMigrate
 , mkSave
 , mkDeleteCascade
+, mkEntityDefList
 , share
 , derivePersistField
 , derivePersistFieldJSON
@@ -1361,6 +1362,36 @@
 [normalClause [VarP key] (DoE stmts)]
 ]
 
+-- | Creates a declaration for the @['EntityDef']@ from the @persistent@
+-- schema. This is necessary because the Persistent QuasiQuoter is unable
+-- to know the correct type of ID fields, and assumes that they are all
+-- Int64.
+--
+-- Provide this in the list you give to 'share', much like @'mkMigrate'@.
+--
+-- @
+-- 'share' ['mkMigrate' "migrateAll", 'mkEntityDefList' "entityDefs"] [...]
+-- @
+--
+-- @since 2.7.1
+mkEntityDefList
+:: String
+-- ^ The name that will be given to the 'EntityDef' list.
+-> [EntityDef]
+-> Q [Dec]
+mkEntityDefList entityList entityDefs = do
+let entityListName = mkName entityList
+edefs <- fmap ListE
+. forM entityDefs
+$ \(EntityDef { entityHaskell = HaskellName haskellName }) ->
+let entityType = conT (mkName (T.unpack haskellName))
+ in [|entityDef (Proxy :: Proxy $(entityType))|]
+typ <- [t|[EntityDef]|]
+pure
+[ SigD entityListName typ
+, ValD (VarP entityListName) (NormalB edefs) []
+]
+
 mkUniqueKeys :: EntityDef -> Q Dec
 mkUniqueKeys def | entitySum def =
 return $ FunD 'persistUniqueKeys [normalClause [WildP] (ListE [])]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/persistent-template-2.7.0/persistent-template.cabal 
new/persistent-template-2.7.1/persistent-template.cabal
--- old/persistent-template-2.7.0/persistent-template.cabal 2019-04-15

commit ghc-persistent-template for openSUSE:Factory

2019-04-28 Thread root
Hello community,

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

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


Package is "ghc-persistent-template"

Sun Apr 28 20:13:25 2019 rev:17 rq:698558 version:2.7.0

Changes:

--- 
/work/SRC/openSUSE:Factory/ghc-persistent-template/ghc-persistent-template.changes
  2019-02-17 12:20:23.500216222 +0100
+++ 
/work/SRC/openSUSE:Factory/.ghc-persistent-template.new.5536/ghc-persistent-template.changes
2019-04-28 20:13:29.582417002 +0200
@@ -1,0 +2,9 @@
+Thu Apr 18 02:03:26 UTC 2019 - psim...@suse.com
+
+- Update persistent-template to version 2.7.0.
+  ## 2.7.0
+
+  * Depends on `persistent-2.10.0` which provides the `OnlyOneUniqueKey` and 
`AtLeastOneUniqueKey` classes. Automatically generates instances for these 
classes based on how many unique keys the entity definition gets. This changes 
requires `UndecidableInstances` to be enabled on each module that generates 
entity definitions. [#885](https://github.com/yesodweb/persistent/pull/885)
+  * Removed deprecated `sqlOnlySettings`. Please use `sqlSettings` instead. 
[#894](https://github.com/yesodweb/persistent/pull/894)
+
+---

Old:

  persistent-template-2.6.0.tar.gz

New:

  persistent-template-2.7.0.tar.gz



Other differences:
--
++ ghc-persistent-template.spec ++
--- /var/tmp/diff_new_pack.mfyaVp/_old  2019-04-28 20:13:30.270416573 +0200
+++ /var/tmp/diff_new_pack.mfyaVp/_new  2019-04-28 20:13:30.270416573 +0200
@@ -19,7 +19,7 @@
 %global pkg_name persistent-template
 %bcond_with tests
 Name:   ghc-%{pkg_name}
-Version:2.6.0
+Version:2.7.0
 Release:0
 Summary:Type-safe, non-relational, multi-backend persistence
 License:MIT
@@ -27,7 +27,6 @@
 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-compat-devel
 BuildRequires:  ghc-aeson-devel
 BuildRequires:  ghc-bytestring-devel
 BuildRequires:  ghc-containers-devel
@@ -37,7 +36,6 @@
 BuildRequires:  ghc-path-pieces-devel
 BuildRequires:  ghc-persistent-devel
 BuildRequires:  ghc-rpm-macros
-BuildRequires:  ghc-tagged-devel
 BuildRequires:  ghc-template-haskell-devel
 BuildRequires:  ghc-text-devel
 BuildRequires:  ghc-transformers-devel

++ persistent-template-2.6.0.tar.gz -> persistent-template-2.7.0.tar.gz 
++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/persistent-template-2.6.0/ChangeLog.md 
new/persistent-template-2.7.0/ChangeLog.md
--- old/persistent-template-2.6.0/ChangeLog.md  2019-01-27 14:37:47.0 
+0100
+++ new/persistent-template-2.7.0/ChangeLog.md  2019-04-17 21:50:18.0 
+0200
@@ -1,3 +1,8 @@
+## 2.7.0
+
+* Depends on `persistent-2.10.0` which provides the `OnlyOneUniqueKey` and 
`AtLeastOneUniqueKey` classes. Automatically generates instances for these 
classes based on how many unique keys the entity definition gets. This changes 
requires `UndecidableInstances` to be enabled on each module that generates 
entity definitions. [#885](https://github.com/yesodweb/persistent/pull/885)
+* Removed deprecated `sqlOnlySettings`. Please use `sqlSettings` instead. 
[#894](https://github.com/yesodweb/persistent/pull/894)
+
 ## 2.6.0
 * [persistent#846](https://github.com/yesodweb/persistent/pull/846): Improve 
error message when marshalling fails
 * [persistent#826](https://github.com/yesodweb/persistent/pull/826): Change 
`Unique` derive `Show`
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/persistent-template-2.6.0/Database/Persist/TH.hs 
new/persistent-template-2.7.0/Database/Persist/TH.hs
--- old/persistent-template-2.6.0/Database/Persist/TH.hs2019-01-27 
14:37:47.0 +0100
+++ new/persistent-template-2.7.0/Database/Persist/TH.hs2019-04-16 
04:46:49.0 +0200
@@ -1,19 +1,13 @@
-{-# LANGUAGE TemplateHaskell #-}
-{-# LANGUAGE RecordWildCards #-}
 {-# LANGUAGE CPP #-}
+{-# LANGUAGE FlexibleInstances #-}
 {-# LANGUAGE OverloadedStrings #-}
 {-# LANGUAGE RankNTypes #-}
+{-# LANGUAGE RecordWildCards #-}
+{-# LANGUAGE TemplateHaskell #-}
 {-# LANGUAGE TupleSections #-}
-{-# LANGUAGE FlexibleContexts, FlexibleInstances, MultiParamTypeClasses #-}
 {-# LANGUAGE UndecidableInstances #-}
 {-# OPTIONS_GHC -fno-warn-orphans -fno-warn-missing-fields #-}
 
-#if !MIN_VERSION_base(4,8,0)
--- overlapping instance

commit ghc-persistent-template for openSUSE:Factory

2019-02-17 Thread root
Hello community,

here is the log from the commit of package ghc-persistent-template for 
openSUSE:Factory checked in at 2019-02-17 12:20:22

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


Package is "ghc-persistent-template"

Sun Feb 17 12:20:22 2019 rev:16 rq:674304 version:2.6.0

Changes:

--- 
/work/SRC/openSUSE:Factory/ghc-persistent-template/ghc-persistent-template.changes
  2018-12-06 12:17:24.197514235 +0100
+++ 
/work/SRC/openSUSE:Factory/.ghc-persistent-template.new.28833/ghc-persistent-template.changes
   2019-02-17 12:20:23.500216222 +0100
@@ -0,0 +1,8 @@
+---
+Mon Jan 28 03:02:08 UTC 2019 - psim...@suse.com
+
+- Update persistent-template to version 2.6.0.
+  ## 2.6.0
+  * [persistent#846](https://github.com/yesodweb/persistent/pull/846): Improve 
error message when marshalling fails
+  * [persistent#826](https://github.com/yesodweb/persistent/pull/826): Change 
`Unique` derive `Show`
+

Old:

  persistent-template-2.5.4.tar.gz
  persistent-template.cabal

New:

  persistent-template-2.6.0.tar.gz



Other differences:
--
++ ghc-persistent-template.spec ++
--- /var/tmp/diff_new_pack.gi0DN0/_old  2019-02-17 12:20:24.460215959 +0100
+++ /var/tmp/diff_new_pack.gi0DN0/_new  2019-02-17 12:20:24.468215956 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-persistent-template
 #
-# 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,14 +19,13 @@
 %global pkg_name persistent-template
 %bcond_with tests
 Name:   ghc-%{pkg_name}
-Version:2.5.4
+Version:2.6.0
 Release:0
 Summary:Type-safe, non-relational, multi-backend persistence
 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/3.cabal#/%{pkg_name}.cabal
 BuildRequires:  ghc-Cabal-devel
 BuildRequires:  ghc-aeson-compat-devel
 BuildRequires:  ghc-aeson-devel
@@ -66,7 +65,6 @@
 
 %prep
 %setup -q -n %{pkg_name}-%{version}
-cp -p %{SOURCE1} %{pkg_name}.cabal
 
 %build
 %ghc_lib_build

++ persistent-template-2.5.4.tar.gz -> persistent-template-2.6.0.tar.gz 
++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/persistent-template-2.5.4/ChangeLog.md 
new/persistent-template-2.6.0/ChangeLog.md
--- old/persistent-template-2.5.4/ChangeLog.md  2018-03-08 16:56:53.0 
+0100
+++ new/persistent-template-2.6.0/ChangeLog.md  2019-01-27 14:37:47.0 
+0100
@@ -1,3 +1,7 @@
+## 2.6.0
+* [persistent#846](https://github.com/yesodweb/persistent/pull/846): Improve 
error message when marshalling fails
+* [persistent#826](https://github.com/yesodweb/persistent/pull/826): Change 
`Unique` derive `Show`
+
 ## 2.5.4
 
 * [persistent#778](https://github.com/yesodweb/persistent/issues/778): Add 
`persistManyFileWith`.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/persistent-template-2.5.4/Database/Persist/TH.hs 
new/persistent-template-2.6.0/Database/Persist/TH.hs
--- old/persistent-template-2.5.4/Database/Persist/TH.hs2018-03-08 
16:56:53.0 +0100
+++ new/persistent-template-2.6.0/Database/Persist/TH.hs2019-01-27 
14:37:47.0 +0100
@@ -524,7 +524,16 @@
 Nothing
 #endif
 (map (mkUnique mps t) $ entityUniques t)
-[]
+(derivClause $ entityUniques t)
+  where
+derivClause [] = []
+#if MIN_VERSION_template_haskell(2,12,0)
+derivClause _  = [DerivClause Nothing [ConT ''Show]]
+#elif MIN_VERSION_template_haskell(2,11,0)
+derivClause _  = [ConT ''Show]
+#else
+derivClause _  = [''Show]
+#endif
 
 mkUnique :: MkPersistSettings -> EntityDef -> UniqueDef -> Con
 mkUnique mps t (UniqueDef (HaskellName constr) _ fields attrs) =
@@ -665,9 +674,6 @@
 mapLeft _ (Right r) = Right r
 mapLeft f (Left l)  = Left (f l)
 
-fieldError :: Text -> Text -> Text
-fieldError fieldName err = "Couldn't parse field `" `mappend` fieldName 
`mappend` "` from database results: " `mappend` err
-
 mkFromPersistValues :: MkPersistSettings -> EntityDef -> Q [Clause]
 mkFromPersistValues _ t@(EntityDef { entitySum = False }) =
 fromValues t "fromPersistValues" en

commit ghc-persistent-template for openSUSE:Factory

2018-12-06 Thread root
Hello community,

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

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


Package is "ghc-persistent-template"

Thu Dec  6 12:17:22 2018 rev:15 rq:653807 version:2.5.4

Changes:

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



Other differences:
--
++ ghc-persistent-template.spec ++
--- /var/tmp/diff_new_pack.ha4k5l/_old  2018-12-06 12:17:24.841513543 +0100
+++ /var/tmp/diff_new_pack.ha4k5l/_new  2018-12-06 12:17:24.841513543 +0100
@@ -26,7 +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/2.cabal#/%{pkg_name}.cabal
+Source1:
https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/3.cabal#/%{pkg_name}.cabal
 BuildRequires:  ghc-Cabal-devel
 BuildRequires:  ghc-aeson-compat-devel
 BuildRequires:  ghc-aeson-devel

++ persistent-template.cabal ++
--- /var/tmp/diff_new_pack.ha4k5l/_old  2018-12-06 12:17:24.869513513 +0100
+++ /var/tmp/diff_new_pack.ha4k5l/_new  2018-12-06 12:17:24.869513513 +0100
@@ -1,6 +1,6 @@
 name:persistent-template
 version: 2.5.4
-x-revision: 2
+x-revision: 3
 license: MIT
 license-file:LICENSE
 author:  Michael Snoyman 
@@ -30,7 +30,7 @@
, unordered-containers
, tagged
, path-pieces
-   , http-api-data>= 0.2   && < 0.4
+   , http-api-data>= 0.2
, ghc-prim
 exposed-modules: Database.Persist.TH
 ghc-options: -Wall




commit ghc-persistent-template for openSUSE:Factory

2018-10-25 Thread root
Hello community,

here is the log from the commit of package ghc-persistent-template for 
openSUSE:Factory checked in at 2018-10-25 09:02:37

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


Package is "ghc-persistent-template"

Thu Oct 25 09:02:37 2018 rev:14 rq:643439 version:2.5.4

Changes:

--- 
/work/SRC/openSUSE:Factory/ghc-persistent-template/ghc-persistent-template.changes
  2018-07-24 17:21:05.147200113 +0200
+++ 
/work/SRC/openSUSE:Factory/.ghc-persistent-template.new/ghc-persistent-template.changes
 2018-10-25 09:02:38.570640553 +0200
@@ -1,0 +2,5 @@
+Sat Oct 20 11:31:52 UTC 2018 - Peter Simons 
+
+- Use https URL to refer to bugs.opensuse.org.
+
+---



Other differences:
--
++ ghc-persistent-template.spec ++
--- /var/tmp/diff_new_pack.a2zzo4/_old  2018-10-25 09:02:39.854639766 +0200
+++ /var/tmp/diff_new_pack.a2zzo4/_new  2018-10-25 09:02:39.858639763 +0200
@@ -12,7 +12,7 @@
 # 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/
 #
 
 




commit ghc-persistent-template for openSUSE:Factory

2018-07-24 Thread root
Hello community,

here is the log from the commit of package ghc-persistent-template for 
openSUSE:Factory checked in at 2018-07-24 17:21:03

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


Package is "ghc-persistent-template"

Tue Jul 24 17:21:03 2018 rev:13 rq:623831 version:2.5.4

Changes:

--- 
/work/SRC/openSUSE:Factory/ghc-persistent-template/ghc-persistent-template.changes
  2018-05-30 12:26:48.535307543 +0200
+++ 
/work/SRC/openSUSE:Factory/.ghc-persistent-template.new/ghc-persistent-template.changes
 2018-07-24 17:21:05.147200113 +0200
@@ -1,0 +2,11 @@
+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.
+
+---
+Wed Jul 18 14:13:26 UTC 2018 - psim...@suse.com
+
+- Revise cabal build file to specify more accurate dependencies.
+
+---
@@ -67 +77,0 @@
-



Other differences:
--
++ ghc-persistent-template.spec ++
--- /var/tmp/diff_new_pack.W5TMS1/_old  2018-07-24 17:21:05.787200934 +0200
+++ /var/tmp/diff_new_pack.W5TMS1/_new  2018-07-24 17:21:05.791200938 +0200
@@ -26,7 +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
+Source1:
https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/2.cabal#/%{pkg_name}.cabal
 BuildRequires:  ghc-Cabal-devel
 BuildRequires:  ghc-aeson-compat-devel
 BuildRequires:  ghc-aeson-devel

++ persistent-template.cabal ++
--- /var/tmp/diff_new_pack.W5TMS1/_old  2018-07-24 17:21:05.823200979 +0200
+++ /var/tmp/diff_new_pack.W5TMS1/_new  2018-07-24 17:21:05.823200979 +0200
@@ -1,6 +1,6 @@
 name:persistent-template
 version: 2.5.4
-x-revision: 1
+x-revision: 2
 license: MIT
 license-file:LICENSE
 author:  Michael Snoyman 
@@ -24,7 +24,7 @@
, text >= 0.5
, transformers >= 0.2   && < 0.6
, containers
-   , aeson>= 0.7   && < 1.4
+   , aeson>= 0.7   && < 1.5
, aeson-compat >= 0.3.2.0   && < 0.4
, monad-logger
, unordered-containers




commit ghc-persistent-template for openSUSE:Factory

2018-05-30 Thread root
Hello community,

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

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


Package is "ghc-persistent-template"

Wed May 30 12:11:37 2018 rev:12 rq:607858 version:2.5.4

Changes:

--- 
/work/SRC/openSUSE:Factory/ghc-persistent-template/ghc-persistent-template.changes
  2017-09-15 22:04:24.854814420 +0200
+++ 
/work/SRC/openSUSE:Factory/.ghc-persistent-template.new/ghc-persistent-template.changes
 2018-05-30 12:26:48.535307543 +0200
@@ -1,0 +2,8 @@
+Mon May 14 17:02:11 UTC 2018 - psim...@suse.com
+
+- Update persistent-template to version 2.5.4 revision 1.
+  * [persistent#778](https://github.com/yesodweb/persistent/issues/778): Add 
`persistManyFileWith`.
+  * Slight improvement to the error message when a Persistent field can't be 
parsed from database results
+  * Exposed `parseReferences` to allow custom QuasiQuoters
+
+---

Old:

  persistent-template-2.5.2.tar.gz

New:

  persistent-template-2.5.4.tar.gz



Other differences:
--
++ ghc-persistent-template.spec ++
--- /var/tmp/diff_new_pack.RnHIDc/_old  2018-05-30 12:26:49.791264517 +0200
+++ /var/tmp/diff_new_pack.RnHIDc/_new  2018-05-30 12:26:49.791264517 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-persistent-template
 #
-# 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,7 +19,7 @@
 %global pkg_name persistent-template
 %bcond_with tests
 Name:   ghc-%{pkg_name}
-Version:2.5.2
+Version:2.5.4
 Release:0
 Summary:Type-safe, non-relational, multi-backend persistence
 License:MIT
@@ -84,7 +84,7 @@
 %ghc_pkg_recache
 
 %files -f %{name}.files
-%doc LICENSE
+%license LICENSE
 
 %files devel -f %{name}-devel.files
 %doc ChangeLog.md README.md

++ persistent-template-2.5.2.tar.gz -> persistent-template-2.5.4.tar.gz 
++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/persistent-template-2.5.2/ChangeLog.md 
new/persistent-template-2.5.4/ChangeLog.md
--- old/persistent-template-2.5.2/ChangeLog.md  2017-03-01 07:48:55.0 
+0100
+++ new/persistent-template-2.5.4/ChangeLog.md  2018-03-08 16:56:53.0 
+0100
@@ -1,3 +1,15 @@
+## 2.5.4
+
+* [persistent#778](https://github.com/yesodweb/persistent/issues/778): Add 
`persistManyFileWith`.
+
+## 2.5.3.1
+
+* Slight improvement to the error message when a Persistent field can't be 
parsed from database results
+
+## 2.5.3
+
+* Exposed `parseReferences` to allow custom QuasiQuoters
+
 ## 2.5.2
 
 * Fix incorrect `ToJSON`/`FromJSON` instance generation for generic
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/persistent-template-2.5.2/Database/Persist/TH.hs 
new/persistent-template-2.5.4/Database/Persist/TH.hs
--- old/persistent-template-2.5.2/Database/Persist/TH.hs2017-03-03 
10:45:56.0 +0100
+++ new/persistent-template-2.5.4/Database/Persist/TH.hs2018-03-08 
16:56:53.0 +0100
@@ -22,6 +22,7 @@
 , persistUpperCase
 , persistLowerCase
 , persistFileWith
+, persistManyFileWith
   -- * Turn @EntityDef@s into types
 , mkPersist
 , MkPersistSettings
@@ -45,6 +46,7 @@
   -- * Internal
 , packPTH
 , lensPTH
+, parseReferences
 ) where
 
 import Prelude hiding ((++), take, concat, splitAt, exp)
@@ -62,6 +64,7 @@
 import Control.Monad (forM, (<=<), mzero)
 import qualified System.IO as SIO
 import Data.Text (pack, Text, append, unpack, concat, uncons, cons, 
stripPrefix, stripSuffix)
+import qualified Data.Text as T
 import Data.Text.Encoding (decodeUtf8)
 import qualified Data.Text.IO as TIO
 import Data.Int (Int64)
@@ -110,17 +113,67 @@
 -- | Same as 'persistWith', but uses an external file instead of a
 -- quasiquotation.
 persistFileWith :: PersistSettings -> FilePath -> Q Exp
-persistFileWith ps fp = do
+persistFileWith ps fp = persistManyFileWith ps [fp]
+
+-- | Same as 'persistFileWith', but uses several external files instead of
+-- one. Splitting your Persistent definitions into multiple modules can 
+-- potentially dramatically speed up compile times.
+--
+--  __Examples__
+--
+-- Split your Persistent definitions into multiple files (@models1@, 
@models2@), 
+-- then create a new module for each new file and run 'mkPersist' 

commit ghc-persistent-template for openSUSE:Factory

2017-09-15 Thread root
Hello community,

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

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


Package is "ghc-persistent-template"

Fri Sep 15 22:04:24 2017 rev:11 rq:525154 version:2.5.2

Changes:

--- 
/work/SRC/openSUSE:Factory/ghc-persistent-template/ghc-persistent-template.changes
  2017-06-21 13:55:44.159690057 +0200
+++ 
/work/SRC/openSUSE:Factory/.ghc-persistent-template.new/ghc-persistent-template.changes
 2017-09-15 22:04:24.854814420 +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-template.spec ++
--- /var/tmp/diff_new_pack.MJhVYg/_old  2017-09-15 22:04:25.398737780 +0200
+++ /var/tmp/diff_new_pack.MJhVYg/_new  2017-09-15 22:04:25.402737216 +0200
@@ -23,8 +23,8 @@
 Release:0
 Summary:Type-safe, non-relational, multi-backend persistence
 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
 Source1:
https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/1.cabal#/%{pkg_name}.cabal
 BuildRequires:  ghc-Cabal-devel
@@ -43,7 +43,6 @@
 BuildRequires:  ghc-text-devel
 BuildRequires:  ghc-transformers-devel
 BuildRequires:  ghc-unordered-containers-devel
-BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 %if %{with tests}
 BuildRequires:  ghc-QuickCheck-devel
 BuildRequires:  ghc-hspec-devel
@@ -55,7 +54,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}
@@ -85,11 +84,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-template for openSUSE:Factory

2017-06-21 Thread root
Hello community,

here is the log from the commit of package ghc-persistent-template for 
openSUSE:Factory checked in at 2017-06-21 13:55:43

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


Package is "ghc-persistent-template"

Wed Jun 21 13:55:43 2017 rev:10 rq:504674 version:2.5.2

Changes:

--- 
/work/SRC/openSUSE:Factory/ghc-persistent-template/ghc-persistent-template.changes
  2017-04-11 09:43:15.321251410 +0200
+++ 
/work/SRC/openSUSE:Factory/.ghc-persistent-template.new/ghc-persistent-template.changes
 2017-06-21 13:55:44.159690057 +0200
@@ -1,0 +2,5 @@
+Mon Jun 12 09:41:40 UTC 2017 - psim...@suse.com
+
+- Update to version 2.5.2 revision 1.
+
+---

New:

  persistent-template.cabal



Other differences:
--
++ ghc-persistent-template.spec ++
--- /var/tmp/diff_new_pack.uNzfO8/_old  2017-06-21 13:55:45.751465523 +0200
+++ /var/tmp/diff_new_pack.uNzfO8/_new  2017-06-21 13:55:45.755464958 +0200
@@ -26,6 +26,7 @@
 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/1.cabal#/%{pkg_name}.cabal
 BuildRequires:  ghc-Cabal-devel
 BuildRequires:  ghc-aeson-compat-devel
 BuildRequires:  ghc-aeson-devel
@@ -66,6 +67,7 @@
 
 %prep
 %setup -q -n %{pkg_name}-%{version}
+cp -p %{SOURCE1} %{pkg_name}.cabal
 
 %build
 %ghc_lib_build

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

synopsis:Type-safe, non-relational, multi-backend persistence.
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: test/main.hs ChangeLog.md README.md

library
build-depends:   base >= 4.6 && < 5
   , template-haskell
   , persistent   >= 2.5   && < 3
   , monad-control>= 0.2   && < 1.1
   , bytestring   >= 0.9
   , text >= 0.5
   , transformers >= 0.2   && < 0.6
   , containers
   , aeson>= 0.7   && < 1.3
   , aeson-compat >= 0.3.2.0   && < 0.4
   , monad-logger
   , unordered-containers
   , tagged
   , path-pieces
   , http-api-data>= 0.2   && < 0.4
   , ghc-prim
exposed-modules: Database.Persist.TH
ghc-options: -Wall
if impl(ghc >= 7.4)
   cpp-options: -DGHC_7_4

test-suite test
type:  exitcode-stdio-1.0
main-is:   main.hs
hs-source-dirs: test

build-depends:   base >= 4.6 && < 5
   , persistent-template
   , aeson
   , hspec >= 1.3
   , text
   , persistent
   , bytestring
   , QuickCheck
   , transformers

source-repository head
  type: git
  location: git://github.com/yesodweb/persistent.git



commit ghc-persistent-template for openSUSE:Factory

2017-04-11 Thread root
Hello community,

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

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


Package is "ghc-persistent-template"

Tue Apr 11 09:43:11 2017 rev:9 rq:485154 version:2.5.2

Changes:

--- 
/work/SRC/openSUSE:Factory/ghc-persistent-template/ghc-persistent-template.changes
  2017-03-18 20:50:34.661647699 +0100
+++ 
/work/SRC/openSUSE:Factory/.ghc-persistent-template.new/ghc-persistent-template.changes
 2017-04-11 09:43:15.321251410 +0200
@@ -1,0 +2,5 @@
+Tue Mar 14 09:26:16 UTC 2017 - psim...@suse.com
+
+- Update to version 2.5.2 with cabal2obs.
+
+---

Old:

  persistent-template-2.5.1.6.tar.gz
  persistent-template.cabal

New:

  persistent-template-2.5.2.tar.gz



Other differences:
--
++ ghc-persistent-template.spec ++
--- /var/tmp/diff_new_pack.qtun3N/_old  2017-04-11 09:43:15.893170619 +0200
+++ /var/tmp/diff_new_pack.qtun3N/_new  2017-04-11 09:43:15.893170619 +0200
@@ -19,14 +19,13 @@
 %global pkg_name persistent-template
 %bcond_with tests
 Name:   ghc-%{pkg_name}
-Version:2.5.1.6
+Version:2.5.2
 Release:0
 Summary:Type-safe, non-relational, multi-backend persistence
 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-compat-devel
 BuildRequires:  ghc-aeson-devel
@@ -67,7 +66,6 @@
 
 %prep
 %setup -q -n %{pkg_name}-%{version}
-cp -p %{SOURCE1} %{pkg_name}.cabal
 
 %build
 %ghc_lib_build

++ persistent-template-2.5.1.6.tar.gz -> persistent-template-2.5.2.tar.gz 
++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/persistent-template-2.5.1.6/ChangeLog.md 
new/persistent-template-2.5.2/ChangeLog.md
--- old/persistent-template-2.5.1.6/ChangeLog.md2016-08-05 
07:26:14.0 +0200
+++ new/persistent-template-2.5.2/ChangeLog.md  2017-03-01 07:48:55.0 
+0100
@@ -1,3 +1,8 @@
+## 2.5.2
+
+* Fix incorrect `ToJSON`/`FromJSON` instance generation for generic
+  backends
+
 ## 2.5.1.6
 
 Allow non-null self-references in a list
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/persistent-template-2.5.1.6/Database/Persist/TH.hs 
new/persistent-template-2.5.2/Database/Persist/TH.hs
--- old/persistent-template-2.5.1.6/Database/Persist/TH.hs  2016-08-05 
07:23:16.0 +0200
+++ new/persistent-template-2.5.2/Database/Persist/TH.hs2017-03-03 
10:45:56.0 +0100
@@ -7,9 +7,13 @@
 {-# LANGUAGE FlexibleContexts, FlexibleInstances, MultiParamTypeClasses #-}
 {-# LANGUAGE UndecidableInstances #-}
 {-# OPTIONS_GHC -fno-warn-orphans -fno-warn-missing-fields #-}
+
+#if !MIN_VERSION_base(4,8,0)
 -- overlapping instances is for automatic lifting
 -- while avoiding an orphan of Lift for Text
 {-# LANGUAGE OverlappingInstances #-}
+#endif
+
 -- | This module provides utilities for creating backends. Regular users do not
 -- need to use this module.
 module Database.Persist.TH
@@ -45,7 +49,6 @@
 
 import Prelude hiding ((++), take, concat, splitAt, exp)
 import Database.Persist
-import Database.Persist.Class (HasPersistBackend(..), BaseBackend)
 import Database.Persist.Sql (Migration, migrate, SqlBackend, PersistFieldSql)
 import Database.Persist.Quasi
 import Language.Haskell.TH.Lib (
@@ -73,11 +76,11 @@
 , Value (Object), (.:), (.:?)
 , eitherDecodeStrict'
 )
-import Control.Applicative (pure, (<$>), (<*>))
+import Control.Applicative as A (pure, (<$>), (<*>))
 import Database.Persist.Sql (sqlType)
 import Data.Proxy (Proxy (Proxy))
 import Web.PathPieces (PathPiece(..))
-import Web.HttpApiData (ToHttpApiData(..), FromHttpApiData(..), 
parseUrlPieceMaybe)
+import Web.HttpApiData (ToHttpApiData(..), FromHttpApiData(..))
 import GHC.Generics (Generic)
 import qualified Data.Text.Encoding as TE
 
@@ -246,7 +249,7 @@
 Nothing -> NoReference
 Just name -> case M.lookup (HaskellName name) allEntities of
 Nothing -> NoReference
-Just x -> ForeignRef (HaskellName name)
+Just _ -> ForeignRef (HaskellName name)
 -- This can get corrected in 
mkEntityDefSqlTy

commit ghc-persistent-template for openSUSE:Factory

2017-03-18 Thread root
Hello community,

here is the log from the commit of package ghc-persistent-template for 
openSUSE:Factory checked in at 2017-03-18 20:50:33

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


Package is "ghc-persistent-template"

Sat Mar 18 20:50:33 2017 rev:8 rq:477463 version:2.5.1.6

Changes:

--- 
/work/SRC/openSUSE:Factory/ghc-persistent-template/ghc-persistent-template.changes
  2016-10-20 23:08:05.0 +0200
+++ 
/work/SRC/openSUSE:Factory/.ghc-persistent-template.new/ghc-persistent-template.changes
 2017-03-18 20:50:34.661647699 +0100
@@ -1,0 +2,5 @@
+Wed Jan  4 21:22:17 UTC 2017 - psim...@suse.com
+
+- Update to version 2.5.1.6 revision 2 with cabal2obs.
+
+---



Other differences:
--
++ ghc-persistent-template.spec ++
--- /var/tmp/diff_new_pack.GukcTG/_old  2017-03-18 20:50:35.349550247 +0100
+++ /var/tmp/diff_new_pack.GukcTG/_new  2017-03-18 20:50:35.353549680 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-persistent-template
 #
-# 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
@@ -26,7 +26,7 @@
 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/1.cabal#/%{pkg_name}.cabal
+Source1:
https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/2.cabal#/%{pkg_name}.cabal
 BuildRequires:  ghc-Cabal-devel
 BuildRequires:  ghc-aeson-compat-devel
 BuildRequires:  ghc-aeson-devel
@@ -90,5 +90,6 @@
 
 %files devel -f %{name}-devel.files
 %defattr(-,root,root,-)
+%doc ChangeLog.md README.md
 
 %changelog

++ persistent-template.cabal ++
--- /var/tmp/diff_new_pack.GukcTG/_old  2017-03-18 20:50:35.401542881 +0100
+++ /var/tmp/diff_new_pack.GukcTG/_new  2017-03-18 20:50:35.401542881 +0100
@@ -1,6 +1,6 @@
 name:persistent-template
 version: 2.5.1.6
-x-revision: 1
+x-revision: 2
 license: MIT
 license-file:LICENSE
 author:  Michael Snoyman 
@@ -24,7 +24,7 @@
, text >= 0.5
, transformers >= 0.2   && < 0.6
, containers
-   , aeson>= 0.7   && < 1.1
+   , aeson>= 0.7   && < 1.2
, aeson-compat >= 0.3.2.0   && < 0.4
, monad-logger
, unordered-containers




commit ghc-persistent-template for openSUSE:Factory

2016-10-20 Thread h_root
Hello community,

here is the log from the commit of package ghc-persistent-template for 
openSUSE:Factory checked in at 2016-10-20 23:08:05

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


Package is "ghc-persistent-template"

Changes:

--- 
/work/SRC/openSUSE:Factory/ghc-persistent-template/ghc-persistent-template.changes
  2016-07-21 08:16:13.0 +0200
+++ 
/work/SRC/openSUSE:Factory/.ghc-persistent-template.new/ghc-persistent-template.changes
 2016-10-20 23:08:05.0 +0200
@@ -1,0 +2,5 @@
+Thu Sep 15 06:49:07 UTC 2016 - psim...@suse.com
+
+- Update to version 2.5.1.6 revision 1 with cabal2obs.
+
+---

Old:

  persistent-template-2.1.8.1.tar.gz

New:

  persistent-template-2.5.1.6.tar.gz
  persistent-template.cabal



Other differences:
--
++ ghc-persistent-template.spec ++
--- /var/tmp/diff_new_pack.beKlKf/_old  2016-10-20 23:08:06.0 +0200
+++ /var/tmp/diff_new_pack.beKlKf/_new  2016-10-20 23:08:06.0 +0200
@@ -19,15 +19,15 @@
 %global pkg_name persistent-template
 %bcond_with tests
 Name:   ghc-%{pkg_name}
-Version:2.1.8.1
+Version:2.5.1.6
 Release:0
 Summary:Type-safe, non-relational, multi-backend persistence
 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/1.cabal#/%{pkg_name}.cabal
 BuildRequires:  ghc-Cabal-devel
-# Begin cabal-rpm deps:
 BuildRequires:  ghc-aeson-compat-devel
 BuildRequires:  ghc-aeson-devel
 BuildRequires:  ghc-bytestring-devel
@@ -48,7 +48,6 @@
 BuildRequires:  ghc-QuickCheck-devel
 BuildRequires:  ghc-hspec-devel
 %endif
-# End cabal-rpm deps
 
 %description
 Hackage documentation generation is not reliable. For up to date documentation,
@@ -68,21 +67,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
@@ -96,6 +90,5 @@
 
 %files devel -f %{name}-devel.files
 %defattr(-,root,root,-)
-%doc ChangeLog.md README.md
 
 %changelog

++ persistent-template-2.1.8.1.tar.gz -> persistent-template-2.5.1.6.tar.gz 
++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/persistent-template-2.1.8.1/ChangeLog.md 
new/persistent-template-2.5.1.6/ChangeLog.md
--- old/persistent-template-2.1.8.1/ChangeLog.md2016-05-14 
06:08:26.0 +0200
+++ new/persistent-template-2.5.1.6/ChangeLog.md2016-08-05 
07:26:14.0 +0200
@@ -1,15 +1,35 @@
-## 2.1.8.1
+## 2.5.1.6
+
+Allow non-null self-references in a list
+
+## 2.5.1.4
+
+* Allow composite Primary keys for tables that contain nullable fields.
+* Support foreign keys to non-integer ids
+
+## 2.5.1.3
+
+* fix GHC 7.8 bug when a field name is "type"
+
+## 2.5.1.2
 
 * fix a bad Eq instance /= definition for Key when mpsGenetric=True
 
-## 2.1.7
+## 2.5.0.1
+
+* workaround TH bug in GHC 7.10
 
-* Support for GHC 8 [#556](https://github.com/yesodweb/persistent/issues/556)
+## 2.5
+
+* read/write typeclass split
 
 ## 2.1.6
 
 * aeson 0.11
 * transformers 0.5
+## 2.1.4
+
+support http-api-data for url serialization
 
 ## 2.1.3.3
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/persistent-template-2.1.8.1/Database/Persist/TH.hs 
new/persistent-template-2.5.1.6/Database/Persist/TH.hs
--- old/persistent-template-2.1.8.1/Database/Persist/TH.hs  2016-05-14 
06:09:06.0 +0200
+++ new/persistent-template-2.5.1.6/Database/Persist/TH.hs  2016-08-05 
07:23:16.0 +0200
@@ -45,6 +45,7 @@
 
 import Prelude hiding ((++), take, concat, splitAt, exp)
 import Database.Persist
+import Database.Persist.Class (HasPersistBackend(..), BaseBackend)
 import Database.Persist.Sql (Migration, migrate, SqlBackend, PersistFieldSql)
 import Database.Persist.Quasi
 import Language.Haskell.TH.Lib (
@@ -80,6 +81,14 @@
 import GHC.Generics (Generic)
 import qualified Data.Text.Encoding as TE
 
+-- | This special-cases "type_" and strips out its underscore. When
+-- used for JSON serialization and deserialization, it works around
+-- 
+unHaskellNameForJSON :: HaskellName -> Text
+unHaskellNameForJSON = fixTypeUnderscore . unH

commit ghc-persistent-template for openSUSE:Factory

2016-07-20 Thread h_root
Hello community,

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

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


Package is "ghc-persistent-template"

Changes:

--- 
/work/SRC/openSUSE:Factory/ghc-persistent-template/ghc-persistent-template.changes
  2016-05-17 17:15:59.0 +0200
+++ 
/work/SRC/openSUSE:Factory/.ghc-persistent-template.new/ghc-persistent-template.changes
 2016-07-21 08:16:13.0 +0200
@@ -1,0 +2,5 @@
+Sun Jul 10 17:31:46 UTC 2016 - psim...@suse.com
+
+- Update to version 2.1.8.1 revision 0 with cabal2obs.
+
+---



Other differences:
--
++ ghc-persistent-template.spec ++
--- /var/tmp/diff_new_pack.Ik0UNZ/_old  2016-07-21 08:16:14.0 +0200
+++ /var/tmp/diff_new_pack.Ik0UNZ/_new  2016-07-21 08:16:14.0 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-persistent-template
 #
-# 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
@@ -15,27 +15,21 @@
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
 
-%global pkg_name persistent-template
 
+%global pkg_name persistent-template
 %bcond_with tests
-
-Name:   ghc-persistent-template
+Name:   ghc-%{pkg_name}
 Version:2.1.8.1
 Release:0
 Summary:Type-safe, non-relational, multi-backend persistence
-Group:  System/Libraries
-
 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-aeson-compat-devel
-BuildRequires:  ghc-aeson-extra-devel
+BuildRequires:  ghc-aeson-devel
 BuildRequires:  ghc-bytestring-devel
 BuildRequires:  ghc-containers-devel
 BuildRequires:  ghc-http-api-data-devel
@@ -43,11 +37,13 @@
 BuildRequires:  ghc-monad-logger-devel
 BuildRequires:  ghc-path-pieces-devel
 BuildRequires:  ghc-persistent-devel
+BuildRequires:  ghc-rpm-macros
 BuildRequires:  ghc-tagged-devel
 BuildRequires:  ghc-template-haskell-devel
 BuildRequires:  ghc-text-devel
 BuildRequires:  ghc-transformers-devel
 BuildRequires:  ghc-unordered-containers-devel
+BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 %if %{with tests}
 BuildRequires:  ghc-QuickCheck-devel
 BuildRequires:  ghc-hspec-devel
@@ -58,20 +54,18 @@
 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}
 
@@ -86,26 +80,22 @@
 
 %check
 %if %{with tests}
-%cabal test
+%{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
-
+%doc ChangeLog.md README.md
 
 %changelog




commit ghc-persistent-template for openSUSE:Factory

2016-05-17 Thread h_root
Hello community,

here is the log from the commit of package ghc-persistent-template for 
openSUSE:Factory checked in at 2016-05-17 17:15:58

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


Package is "ghc-persistent-template"

Changes:

--- 
/work/SRC/openSUSE:Factory/ghc-persistent-template/ghc-persistent-template.changes
  2016-04-28 17:02:12.0 +0200
+++ 
/work/SRC/openSUSE:Factory/.ghc-persistent-template.new/ghc-persistent-template.changes
 2016-05-17 17:15:59.0 +0200
@@ -1,0 +2,6 @@
+Sat May 14 20:21:10 UTC 2016 - mimi...@gmail.com
+
+- update to 2.1.8.1
+* fix a bad Eq instance /= definition for Key when mpsGenetric=True
+
+---

Old:

  persistent-template-2.1.8.tar.gz

New:

  persistent-template-2.1.8.1.tar.gz



Other differences:
--
++ ghc-persistent-template.spec ++
--- /var/tmp/diff_new_pack.xj7I5n/_old  2016-05-17 17:16:00.0 +0200
+++ /var/tmp/diff_new_pack.xj7I5n/_new  2016-05-17 17:16:00.0 +0200
@@ -20,7 +20,7 @@
 %bcond_with tests
 
 Name:   ghc-persistent-template
-Version:2.1.8
+Version:2.1.8.1
 Release:0
 Summary:Type-safe, non-relational, multi-backend persistence
 Group:  System/Libraries

++ persistent-template-2.1.8.tar.gz -> persistent-template-2.1.8.1.tar.gz 
++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/persistent-template-2.1.8/ChangeLog.md 
new/persistent-template-2.1.8.1/ChangeLog.md
--- old/persistent-template-2.1.8/ChangeLog.md  2016-04-23 09:41:14.0 
+0200
+++ new/persistent-template-2.1.8.1/ChangeLog.md2016-05-14 
06:08:26.0 +0200
@@ -1,3 +1,7 @@
+## 2.1.8.1
+
+* fix a bad Eq instance /= definition for Key when mpsGenetric=True
+
 ## 2.1.7
 
 * Support for GHC 8 [#556](https://github.com/yesodweb/persistent/issues/556)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/persistent-template-2.1.8/Database/Persist/TH.hs 
new/persistent-template-2.1.8.1/Database/Persist/TH.hs
--- old/persistent-template-2.1.8/Database/Persist/TH.hs2016-04-23 
09:42:28.0 +0200
+++ new/persistent-template-2.1.8.1/Database/Persist/TH.hs  2016-05-14 
06:09:06.0 +0200
@@ -766,9 +766,6 @@
 x == y =
 ($(return unKeyE) x) ==
 ($(return unKeyE) y)
-x /= y =
-($(return unKeyE) x) ==
-($(return unKeyE) y)
  instance Ord (BackendKey $(pure backendT)) => Ord (Key $(pure 
recordType)) where
 compare x y = compare
 ($(return unKeyE) x)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/persistent-template-2.1.8/persistent-template.cabal 
new/persistent-template-2.1.8.1/persistent-template.cabal
--- old/persistent-template-2.1.8/persistent-template.cabal 2016-04-23 
09:42:38.0 +0200
+++ new/persistent-template-2.1.8.1/persistent-template.cabal   2016-05-14 
06:08:17.0 +0200
@@ -1,5 +1,5 @@
 name:persistent-template
-version: 2.1.8
+version: 2.1.8.1
 license: MIT
 license-file:LICENSE
 author:  Michael Snoyman 




commit ghc-persistent-template for openSUSE:Factory

2016-04-28 Thread h_root
Hello community,

here is the log from the commit of package ghc-persistent-template for 
openSUSE:Factory checked in at 2016-04-28 16:57:04

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


Package is "ghc-persistent-template"

Changes:

--- 
/work/SRC/openSUSE:Factory/ghc-persistent-template/ghc-persistent-template.changes
  2016-03-18 21:41:14.0 +0100
+++ 
/work/SRC/openSUSE:Factory/.ghc-persistent-template.new/ghc-persistent-template.changes
 2016-04-28 17:02:12.0 +0200
@@ -1,0 +2,8 @@
+Tue Apr 26 08:36:30 UTC 2016 - mimi...@gmail.com
+
+-update to 2.1.8
+* Support for GHC 8
+* aeson 0.11
+* transformers 0.5
+
+---

Old:

  persistent-template-2.1.6.tar.gz

New:

  persistent-template-2.1.8.tar.gz



Other differences:
--
++ ghc-persistent-template.spec ++
--- /var/tmp/diff_new_pack.mBLjqf/_old  2016-04-28 17:02:14.0 +0200
+++ /var/tmp/diff_new_pack.mBLjqf/_new  2016-04-28 17:02:14.0 +0200
@@ -20,7 +20,7 @@
 %bcond_with tests
 
 Name:   ghc-persistent-template
-Version:2.1.6
+Version:2.1.8
 Release:0
 Summary:Type-safe, non-relational, multi-backend persistence
 Group:  System/Libraries

++ persistent-template-2.1.6.tar.gz -> persistent-template-2.1.8.tar.gz 
++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/persistent-template-2.1.6/ChangeLog.md 
new/persistent-template-2.1.8/ChangeLog.md
--- old/persistent-template-2.1.6/ChangeLog.md  2016-03-08 09:17:27.0 
+0100
+++ new/persistent-template-2.1.8/ChangeLog.md  2016-04-23 09:41:14.0 
+0200
@@ -1,3 +1,7 @@
+## 2.1.7
+
+* Support for GHC 8 [#556](https://github.com/yesodweb/persistent/issues/556)
+
 ## 2.1.6
 
 * aeson 0.11
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/persistent-template-2.1.6/Database/Persist/TH.hs 
new/persistent-template-2.1.8/Database/Persist/TH.hs
--- old/persistent-template-2.1.6/Database/Persist/TH.hs2016-03-08 
09:17:27.0 +0100
+++ new/persistent-template-2.1.8/Database/Persist/TH.hs2016-04-23 
09:42:28.0 +0200
@@ -47,7 +47,11 @@
 import Database.Persist
 import Database.Persist.Sql (Migration, migrate, SqlBackend, PersistFieldSql)
 import Database.Persist.Quasi
-import Language.Haskell.TH.Lib (varE)
+import Language.Haskell.TH.Lib (
+#if MIN_VERSION_template_haskell(2,11,0)
+conT,
+#endif
+varE)
 import Language.Haskell.TH.Quote
 import Language.Haskell.TH.Syntax
 import Data.Char (toLower, toUpper)
@@ -396,14 +400,21 @@
 Just (a, b) -> cons (toUpper a) b
 Nothing -> t
 
-dataTypeDec :: MkPersistSettings -> EntityDef -> Dec
-dataTypeDec mps t =
-DataD [] nameFinal paramsFinal constrs
-$ map (mkName . unpack) $ entityDerives t
+dataTypeDec :: MkPersistSettings -> EntityDef -> Q Dec
+dataTypeDec mps t = do
+let names = map (mkName . unpack) $ entityDerives t
+#if MIN_VERSION_template_haskell(2,11,0)
+DataD [] nameFinal paramsFinal
+Nothing
+constrs
+<$> mapM conT names
+#else
+return $ DataD [] nameFinal paramsFinal constrs names
+#endif
   where
 mkCol x fd@FieldDef {..} =
 (mkName $ unpack $ recName mps x fieldHaskell,
- if fieldStrict then IsStrict else NotStrict,
+ if fieldStrict then isStrict else notStrict,
  maybeIdType mps fd Nothing Nothing
 )
 (nameFinal, paramsFinal)
@@ -420,7 +431,7 @@
 
 sumCon fd = NormalC
 (sumConstrName mps t fd)
-[(NotStrict, maybeIdType mps fd Nothing Nothing)]
+[(notStrict, maybeIdType mps fd Nothing Nothing)]
 
 sumConstrName :: MkPersistSettings -> EntityDef -> FieldDef -> Name
 sumConstrName mps t FieldDef {..} = mkName $ unpack $ concat
@@ -435,6 +446,9 @@
 uniqueTypeDec mps t =
 DataInstD [] ''Unique
 [genericDataType mps (entityHaskell t) backendT]
+#if MIN_VERSION_template_haskell(2,11,0)
+Nothing
+#endif
 (map (mkUnique mps t) $ entityUniques t)
 []
 
@@ -449,7 +463,7 @@
 
 go :: (FieldDef, IsNullable) -> (Strict, Type)
 go (_, Nullable _) | not force = error nullErrMsg
-go (fd, y) = (NotStrict, maybeIdType mps fd Nothing (Just y))
+go (fd, y) = (notStrict, maybeIdType mps fd Nothing (Just y))
 
 lookup3 :: Text -> [FieldDef] -> (FieldDef, IsNullable)
 lookup3 s [] =
@@ -691,9 +705,16 @@
 bi <- backendKeyI
 return (bi, allInstances)
 
+#if MIN_VERSION_template_haskell(

commit ghc-persistent-template for openSUSE:Factory

2016-03-20 Thread h_root
Hello community,

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

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


Package is "ghc-persistent-template"

Changes:

--- 
/work/SRC/openSUSE:Factory/ghc-persistent-template/ghc-persistent-template.changes
  2015-12-29 12:59:56.0 +0100
+++ 
/work/SRC/openSUSE:Factory/.ghc-persistent-template.new/ghc-persistent-template.changes
 2016-03-18 21:41:14.0 +0100
@@ -1,0 +2,5 @@
+Thu Mar 10 08:58:56 UTC 2016 - mimi...@gmail.com
+
+- update to 2.1.6 
+
+---

Old:

  persistent-template-2.1.5.tar.gz

New:

  persistent-template-2.1.6.tar.gz



Other differences:
--
++ ghc-persistent-template.spec ++
--- /var/tmp/diff_new_pack.ECM8VT/_old  2016-03-18 21:41:14.0 +0100
+++ /var/tmp/diff_new_pack.ECM8VT/_new  2016-03-18 21:41:14.0 +0100
@@ -20,7 +20,7 @@
 %bcond_with tests
 
 Name:   ghc-persistent-template
-Version:2.1.5
+Version:2.1.6
 Release:0
 Summary:Type-safe, non-relational, multi-backend persistence
 Group:  System/Libraries

++ persistent-template-2.1.5.tar.gz -> persistent-template-2.1.6.tar.gz 
++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/persistent-template-2.1.5/ChangeLog.md 
new/persistent-template-2.1.6/ChangeLog.md
--- old/persistent-template-2.1.5/ChangeLog.md  2015-10-27 20:10:26.0 
+0100
+++ new/persistent-template-2.1.6/ChangeLog.md  2016-03-08 09:17:27.0 
+0100
@@ -1,3 +1,8 @@
+## 2.1.6
+
+* aeson 0.11
+* transformers 0.5
+
 ## 2.1.3.3
 
 By default explicitly use Int64 for foreign key references.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/persistent-template-2.1.5/persistent-template.cabal 
new/persistent-template-2.1.6/persistent-template.cabal
--- old/persistent-template-2.1.5/persistent-template.cabal 2015-12-26 
22:52:22.0 +0100
+++ new/persistent-template-2.1.6/persistent-template.cabal 2016-03-08 
09:17:27.0 +0100
@@ -1,5 +1,5 @@
 name:persistent-template
-version: 2.1.5
+version: 2.1.6
 license: MIT
 license-file:LICENSE
 author:  Michael Snoyman 
@@ -21,9 +21,9 @@
, monad-control>= 0.2   && < 1.1
, bytestring   >= 0.9
, text >= 0.5
-   , transformers >= 0.2   && < 0.5
+   , transformers >= 0.2   && < 0.6
, containers
-   , aeson>= 0.7   && < 0.11
+   , aeson>= 0.7   && < 0.12
, aeson-compat >= 0.3.0.0   && < 0.4
, monad-logger
, unordered-containers




commit ghc-persistent-template for openSUSE:Factory

2015-12-29 Thread h_root
Hello community,

here is the log from the commit of package ghc-persistent-template for 
openSUSE:Factory checked in at 2015-12-29 12:59:54

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


Package is "ghc-persistent-template"

Changes:

--- 
/work/SRC/openSUSE:Factory/ghc-persistent-template/ghc-persistent-template.changes
  2015-11-26 17:03:01.0 +0100
+++ 
/work/SRC/openSUSE:Factory/.ghc-persistent-template.new/ghc-persistent-template.changes
 2015-12-29 12:59:56.0 +0100
@@ -1,0 +2,5 @@
+Sun Dec 27 11:55:12 UTC 2015 - mimi...@gmail.com
+
+- update to 2.1.5
+
+---

Old:

  persistent-template-2.1.4.tar.gz

New:

  persistent-template-2.1.5.tar.gz



Other differences:
--
++ ghc-persistent-template.spec ++
--- /var/tmp/diff_new_pack.tqEZ6g/_old  2015-12-29 12:59:57.0 +0100
+++ /var/tmp/diff_new_pack.tqEZ6g/_new  2015-12-29 12:59:57.0 +0100
@@ -20,7 +20,7 @@
 %bcond_with tests
 
 Name:   ghc-persistent-template
-Version:2.1.4
+Version:2.1.5
 Release:0
 Summary:Type-safe, non-relational, multi-backend persistence
 Group:  System/Libraries
@@ -34,6 +34,7 @@
 BuildRequires:  ghc-rpm-macros
 # Begin cabal-rpm deps:
 BuildRequires:  ghc-aeson-devel
+BuildRequires:  ghc-aeson-compat-devel
 BuildRequires:  ghc-aeson-extra-devel
 BuildRequires:  ghc-bytestring-devel
 BuildRequires:  ghc-containers-devel

++ persistent-template-2.1.4.tar.gz -> persistent-template-2.1.5.tar.gz 
++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/persistent-template-2.1.4/ChangeLog.md 
new/persistent-template-2.1.5/ChangeLog.md
--- old/persistent-template-2.1.4/ChangeLog.md  2015-10-19 15:57:06.0 
+0200
+++ new/persistent-template-2.1.5/ChangeLog.md  2015-10-27 20:10:26.0 
+0100
@@ -1,7 +1,3 @@
-## 2.1.4
-
-support http-api-data for url serialization
-
 ## 2.1.3.3
 
 By default explicitly use Int64 for foreign key references.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/persistent-template-2.1.4/README.md 
new/persistent-template-2.1.5/README.md
--- old/persistent-template-2.1.4/README.md 2015-07-13 00:53:14.0 
+0200
+++ new/persistent-template-2.1.5/README.md 2015-10-28 22:20:33.0 
+0100
@@ -2,3 +2,10 @@
 
 Provides Template Haskell helpers for persistent. For more information, see
 [the chapter in the Yesod book](http://www.yesodweb.com/book/persistent).
+
+### code organization
+
+The TH.hs module contains code generators.
+persistent-template uses `EntityDef`s that it gets from the quasi-quoter.
+The quasi-quoter is in persistent Quasi.hs
+Similarly mant of the types come from the persistent library
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/persistent-template-2.1.4/persistent-template.cabal 
new/persistent-template-2.1.5/persistent-template.cabal
--- old/persistent-template-2.1.4/persistent-template.cabal 2015-10-19 
15:57:08.0 +0200
+++ new/persistent-template-2.1.5/persistent-template.cabal 2015-12-26 
22:52:22.0 +0100
@@ -1,5 +1,5 @@
 name:persistent-template
-version: 2.1.4
+version: 2.1.5
 license: MIT
 license-file:LICENSE
 author:  Michael Snoyman 
@@ -17,14 +17,14 @@
 library
 build-depends:   base >= 4.6 && < 5
, template-haskell
-   , persistent   >= 2.1.3 && < 3
+   , persistent   >= 2.2.2 && < 3
, monad-control>= 0.2   && < 1.1
, bytestring   >= 0.9
, text >= 0.5
, transformers >= 0.2   && < 0.5
, containers
, aeson>= 0.7   && < 0.11
-   , aeson-extra  >= 0.2.1.0   && < 0.3
+   , aeson-compat >= 0.3.0.0   && < 0.4
, monad-logger
, unordered-containers
, tagged
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/persistent-template-2.1.4/test/main.hs 
new/persistent-template-2.1.5/test/main.hs
--- old/persistent-template-2.1.4/test/main.hs  2015-07-13 00:53:14.0 
+0200
+++ new/persistent-template-2.1.5/test/main.hs  2015-11-10 16:38:19.0 
+0100
@@ -53,12 +53,6 @@
 bin Int
 |]