diff -Nru haskell-yesod-persistent-1.6.0/ChangeLog.md haskell-yesod-persistent-1.6.0.2/ChangeLog.md --- haskell-yesod-persistent-1.6.0/ChangeLog.md 2018-02-02 09:28:39.000000000 +0000 +++ haskell-yesod-persistent-1.6.0.2/ChangeLog.md 2019-04-22 05:46:11.000000000 +0000 @@ -1,3 +1,13 @@ +# ChangeLog for yesod-persistent + +## 1.6.0.2 + +* Add support for persistent 2.10 + +## 1.6.0.1 + +* Add support for persistent 2.9 [#1516](https://github.com/yesodweb/yesod/pull/1516), [#1561](https://github.com/yesodweb/yesod/pull/1561) + ## 1.6.0 * Upgrade to yesod-core 1.6.0 diff -Nru haskell-yesod-persistent-1.6.0/debian/changelog haskell-yesod-persistent-1.6.0.2/debian/changelog --- haskell-yesod-persistent-1.6.0/debian/changelog 2018-09-30 18:26:23.000000000 +0000 +++ haskell-yesod-persistent-1.6.0.2/debian/changelog 2019-09-04 16:52:58.000000000 +0000 @@ -1,3 +1,15 @@ +haskell-yesod-persistent (1.6.0.2-1build1) eoan; urgency=medium + + * Rebuild against new GHC abi. + + -- Gianfranco Costamagna Wed, 04 Sep 2019 18:52:58 +0200 + +haskell-yesod-persistent (1.6.0.2-1) unstable; urgency=medium + + * New upstream release + + -- Clint Adams Fri, 30 Aug 2019 21:53:29 -0400 + haskell-yesod-persistent (1.6.0-2) unstable; urgency=medium [ Clint Adams ] diff -Nru haskell-yesod-persistent-1.6.0/debian/control haskell-yesod-persistent-1.6.0.2/debian/control --- haskell-yesod-persistent-1.6.0/debian/control 2018-09-29 11:08:49.000000000 +0000 +++ haskell-yesod-persistent-1.6.0.2/debian/control 2019-08-31 01:53:29.000000000 +0000 @@ -16,7 +16,7 @@ libghc-conduit-dev, libghc-conduit-prof, libghc-persistent-dev (>= 2.8), - libghc-persistent-dev (<< 2.9), + libghc-persistent-dev (<< 2.11), libghc-persistent-prof, libghc-persistent-template-dev (>= 2.1), libghc-persistent-template-dev (<< 2.8), diff -Nru haskell-yesod-persistent-1.6.0/test/Yesod/PersistSpec.hs haskell-yesod-persistent-1.6.0.2/test/Yesod/PersistSpec.hs --- haskell-yesod-persistent-1.6.0/test/Yesod/PersistSpec.hs 2018-02-02 09:28:39.000000000 +0000 +++ haskell-yesod-persistent-1.6.0.2/test/Yesod/PersistSpec.hs 2019-04-22 05:38:44.000000000 +0000 @@ -3,6 +3,7 @@ {-# LANGUAGE GeneralizedNewtypeDeriving #-} {-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE CPP #-} +{-# LANGUAGE UndecidableInstances #-} module Yesod.PersistSpec where import Test.Hspec diff -Nru haskell-yesod-persistent-1.6.0/Yesod/Persist/Core.hs haskell-yesod-persistent-1.6.0.2/Yesod/Persist/Core.hs --- haskell-yesod-persistent-1.6.0/Yesod/Persist/Core.hs 2018-02-02 09:28:39.000000000 +0000 +++ haskell-yesod-persistent-1.6.0.2/Yesod/Persist/Core.hs 2019-04-18 07:53:47.000000000 +0000 @@ -41,6 +41,15 @@ class Monad (YesodDB site) => YesodPersist site where type YesodPersistBackend site + -- | Allows you to execute database actions within Yesod Handlers. For databases that support it, code inside the action will run as an atomic transaction. + -- + -- + -- ==== __Example Usage__ + -- + -- > userId <- runDB $ do + -- > userId <- insert $ User "username" "email@example.com" + -- > insert_ $ UserPreferences userId True + -- > pure userId runDB :: YesodDB site a -> HandlerFor site a -- | Helper for creating 'runDB'. @@ -98,7 +107,11 @@ (relKey, (conn, local)) <- allocate (do (conn, local) <- takeResource pool +#if MIN_VERSION_persistent(2,9,0) + withPrep conn (\c f -> SQL.connBegin c f Nothing) +#else withPrep conn SQL.connBegin +#endif return (conn, local) ) (\(conn, local) -> do diff -Nru haskell-yesod-persistent-1.6.0/yesod-persistent.cabal haskell-yesod-persistent-1.6.0.2/yesod-persistent.cabal --- haskell-yesod-persistent-1.6.0/yesod-persistent.cabal 2018-02-02 09:28:39.000000000 +0000 +++ haskell-yesod-persistent-1.6.0.2/yesod-persistent.cabal 2019-04-22 05:45:57.000000000 +0000 @@ -1,5 +1,5 @@ name: yesod-persistent -version: 1.6.0 +version: 1.6.0.2 license: MIT license-file: LICENSE author: Michael Snoyman @@ -16,7 +16,7 @@ library build-depends: base >= 4 && < 5 , yesod-core >= 1.6 && < 1.7 - , persistent >= 2.8 && < 2.9 + , persistent >= 2.8 && < 2.11 , persistent-template >= 2.1 && < 2.8 , transformers >= 0.2.2 , blaze-builder