packages feed

persistent-mysql 0.8.4 → 0.9.0

raw patch · 2 files changed

+7/−6 lines, 2 filesdep ~conduitdep ~persistentdep ~transformersPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: conduit, persistent, transformers

API changes (from Hackage documentation)

- Database.Persist.MySQL: withMySQLConn :: ResourceIO m => ConnectInfo -> (Connection -> m a) -> m a
+ Database.Persist.MySQL: withMySQLConn :: (MonadBaseControl IO m, MonadIO m) => ConnectInfo -> (Connection -> m a) -> m a

Files

Database/Persist/MySQL.hs view
@@ -20,6 +20,7 @@ import Control.Monad.IO.Class (MonadIO (..)) import Control.Monad.Trans.Class (lift) import Control.Monad.Trans.Error (ErrorT(..))+import Control.Monad.Trans.Control (MonadBaseControl) import Data.Aeson import Data.ByteString (ByteString) import Data.Either (partitionEithers)@@ -81,7 +82,7 @@  -- | Same as 'withMySQLPool', but instead of opening a pool -- of connections, only one connection is opened.-withMySQLConn :: C.ResourceIO m =>+withMySQLConn :: (MonadBaseControl IO m, MonadIO m) =>                  MySQL.ConnectInfo               -- ^ Connection information.               -> (Connection -> m a)@@ -147,7 +148,7 @@  -- | Execute an statement that does return results.  The results -- are fetched all at once and stored into memory.-withStmt' :: C.ResourceIO m+withStmt' :: C.MonadResource m           => MySQL.Connection           -> MySQL.Query           -> [PersistValue]
persistent-mysql.cabal view
@@ -1,5 +1,5 @@ name:            persistent-mysql-version:         0.8.4+version:         0.9.0 license:         BSD3 license-file:    LICENSE author:          Felipe Lessa <felipe.lessa@gmail.com>, Michael Snoyman@@ -25,17 +25,17 @@  library     build-depends:   base                  >= 4        && < 5-                   , transformers          >= 0.2.1    && < 0.3+                   , transformers          >= 0.2.1    && < 0.4                    , mysql-simple          >= 0.2.2.3  && < 0.3                    , mysql                 >= 0.1.1.3  && < 0.2-                   , persistent            >= 0.8      && < 0.9+                   , persistent            >= 0.9      && < 0.10                    , containers            >= 0.2                    , bytestring            >= 0.9      && < 0.10                    , text                  >= 0.11.0.6 && < 0.12                    , monad-control         >= 0.2      && < 0.4                    , time                  >= 1.1                    , aeson                 >= 0.5-                   , conduit               >= 0.2+                   , conduit               >= 0.4      && < 0.5     exposed-modules: Database.Persist.MySQL     ghc-options:     -Wall