persistent-mtl 0.1.0.0 → 0.1.0.1
raw patch · 3 files changed
+9/−5 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- CHANGELOG.md +4/−0
- README.md +3/−3
- persistent-mtl.cabal +2/−2
CHANGELOG.md view
@@ -1,3 +1,7 @@+# 0.1.0.1++Fix quickstart+ # 0.1.0.0 Initial release
README.md view
@@ -32,7 +32,7 @@ import Control.Monad.Logger (runStderrLoggingT) import Database.Persist.Sql (Entity(..), toSqlKey, (<.)) import Database.Persist.Monad-import Database.Persist.Sqlite (withSqliteConn)+import Database.Persist.Sqlite (withSqlitePool) import Database.Persist.TH import UnliftIO (MonadUnliftIO(..), wrappedWithRunInIO) @@ -58,8 +58,8 @@ getYoungPeople = selectList [PersonAge <. 18] [] main :: IO ()-main = runStderrLoggingT $ withSqliteConn ":memory:" $ \conn ->- liftIO $ runSqlQueryT (BackendSingle conn) $ unMyApp $ do+main = runStderrLoggingT $ withSqlitePool "db.sqlite" 5 $ \conn ->+ liftIO $ runSqlQueryT conn $ unMyApp $ do runMigration migrate insert_ $ Person "Alice" 25 insert_ $ Person "Bob" 10
persistent-mtl.cabal view
@@ -4,10 +4,10 @@ -- -- see: https://github.com/sol/hpack ----- hash: b4cebf2dfec7ddb84809e77bf7c91ea81fd89f22a13763b7ee032b13313dfebd+-- hash: 9b6ae20631ee5ad633b82ab405f64730ea1603ef8da2099ea41ef126cab9d817 name: persistent-mtl-version: 0.1.0.0+version: 0.1.0.1 synopsis: Monad transformer for the persistent API description: A monad transformer and mtl-style type class for using the persistent API directly in your monad transformer stack.