yam-transaction-postgresql 0.1.11 → 0.1.13
raw patch · 2 files changed
+4/−3 lines, 2 filesdep +unliftio-core
Dependencies added: unliftio-core
Files
src/Yam/Transaction/Postgresql.hs view
@@ -6,6 +6,7 @@ import Yam.Logger import Yam.Transaction +import Control.Monad.IO.Unlift import Database.Persist.Postgresql @@ -14,6 +15,5 @@ instance HasDataSource PostgreSQL where connector _ lg ds a = runLoggingT (withPostgresqlPool (cs $ conn ds) (thread ds) (lift.a)) lg --postgresqlProvider :: (MonadTransaction m, MonadThrow m) => DataSourceProvider m a+postgresqlProvider :: (MonadTransaction m, MonadUnliftIO m) => DataSourceProvider m a postgresqlProvider = ("postgresql", connector (Proxy :: Proxy PostgreSQL))
yam-transaction-postgresql.cabal view
@@ -1,5 +1,5 @@ name: yam-transaction-postgresql-version: 0.1.11+version: 0.1.13 description: Transaction Postgresql Plugin homepage: https://github.com/leptonyu/yam/tree/master/yam-transaction-postgresql#readme license: BSD3@@ -19,6 +19,7 @@ , yam-app , containers , persistent-postgresql+ , unliftio-core default-language: Haskell2010 source-repository head