packages feed

yesod-persistent 1.6.0.1 → 1.6.0.2

raw patch · 4 files changed

+18/−2 lines, 4 filesdep ~persistentPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

Dependency ranges changed: persistent

API changes (from Hackage documentation)

- Yesod.Persist.Core: DBRunner :: forall a. YesodDB site a -> HandlerFor site a -> DBRunner site
+ Yesod.Persist.Core: DBRunner :: (forall a. YesodDB site a -> HandlerFor site a) -> DBRunner site

Files

ChangeLog.md view
@@ -1,3 +1,9 @@+# 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)
Yesod/Persist/Core.hs view
@@ -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'.
test/Yesod/PersistSpec.hs view
@@ -3,6 +3,7 @@ {-# LANGUAGE GeneralizedNewtypeDeriving #-} {-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE CPP #-}+{-# LANGUAGE UndecidableInstances #-} module Yesod.PersistSpec where  import Test.Hspec
yesod-persistent.cabal view
@@ -1,5 +1,5 @@ name:            yesod-persistent-version:         1.6.0.1+version:         1.6.0.2 license:         MIT license-file:    LICENSE author:          Michael Snoyman <michael@snoyman.com>@@ -16,7 +16,7 @@ library     build-depends:   base                      >= 4        && < 5                    , yesod-core                >= 1.6      && < 1.7-                   , persistent                >= 2.8      && < 2.10+                   , persistent                >= 2.8      && < 2.11                    , persistent-template       >= 2.1      && < 2.8                    , transformers              >= 0.2.2                    , blaze-builder