persistent-sqlite 0.2.2.1 → 0.3.0
raw patch · 2 files changed
+9/−9 lines, 2 filesdep +neitherdep −MonadCatchIO-transformersdep ~containersdep ~persistentdep ~template-haskell
Dependencies added: neither
Dependencies removed: MonadCatchIO-transformers
Dependency ranges changed: containers, persistent, template-haskell
Files
Database/Persist/Sqlite.hs view
@@ -16,17 +16,17 @@ import Control.Monad.IO.Class (MonadIO (..)) import Data.List (intercalate)-import "MonadCatchIO-transformers" Control.Monad.CatchIO import Data.IORef import qualified Data.Map as Map+import Control.Monad.Invert (MonadInvertIO) -withSqlitePool :: MonadCatchIO m+withSqlitePool :: MonadInvertIO m => String -> Int -- ^ number of connections to open -> (ConnectionPool -> m a) -> m a withSqlitePool s = withSqlPool $ open' s -withSqliteConn :: MonadCatchIO m => String -> (Connection -> m a) -> m a+withSqliteConn :: MonadInvertIO m => String -> (Connection -> m a) -> m a withSqliteConn = withSqlConn . open' open' :: String -> IO Connection@@ -81,7 +81,7 @@ Sqlite.Done <- Sqlite.step stmt return () -withStmt' :: MonadCatchIO m+withStmt' :: MonadInvertIO m => Sqlite.Statement -> [PersistValue] -> (RowPopper m -> m a)
persistent-sqlite.cabal view
@@ -1,5 +1,5 @@ name: persistent-sqlite-version: 0.2.2.1+version: 0.3.0 license: BSD3 license-file: LICENSE author: Michael Snoyman <michael@snoyman.com>@@ -18,13 +18,13 @@ library build-depends: base >= 4 && < 5,- template-haskell >= 2.4 && < 2.5,+ template-haskell >= 2.4 && < 2.6, bytestring >= 0.9.1 && < 0.10, transformers >= 0.2.1 && < 0.3,- MonadCatchIO-transformers >= 0.2.2 && < 0.3, utf8-string >= 0.3.4 && < 0.4,- persistent >= 0.2.2 && < 0.3,- containers >= 0.2 && < 0.4+ persistent >= 0.3.0 && < 0.4,+ neither >= 0.1 && < 0.2,+ containers >= 0.2 && < 0.5 exposed-modules: Database.Sqlite Database.Persist.Sqlite ghc-options: -Wall