Update yesod-auth and yesod-persistent to persistent-2.9

This commit is contained in:
Ian Duncan 2018-06-04 09:30:22 +09:00
parent c88c2019ee
commit 3036573f57
3 changed files with 7 additions and 3 deletions

View File

@ -1,5 +1,5 @@
name: yesod-auth
version: 1.6.3
version: 1.6.4
license: MIT
license-file: LICENSE
author: Michael Snoyman, Patrick Brisbin

View File

@ -98,7 +98,11 @@ defaultGetDBRunner getPool = do
(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

View File

@ -1,5 +1,5 @@
name: yesod-persistent
version: 1.6.0
version: 1.6.1
license: MIT
license-file: LICENSE
author: Michael Snoyman <michael@snoyman.com>
@ -16,7 +16,7 @@ extra-source-files: README.md ChangeLog.md
library
build-depends: base >= 4 && < 5
, yesod-core >= 1.6 && < 1.7
, persistent >= 2.8 && < 2.9
, persistent >= 2.8 && < 2.10
, persistent-template >= 2.1 && < 2.8
, transformers >= 0.2.2
, blaze-builder