packages feed

haskey-mtl 0.1.0.0 → 0.2.0.0

raw patch · 3 files changed

+8/−8 lines, 3 filesdep ~haskeydep ~haskey-btreePVP ok

version bump matches the API change (PVP)

Dependency ranges changed: haskey, haskey-btree

API changes (from Hackage documentation)

- Control.Monad.Haskey: runFileStoreHaskeyT :: (Root root, MonadMask m, MonadIO m) => HaskeyT root m a -> ConcurrentDb root -> FileStoreConfig -> m a
+ Control.Monad.Haskey: runHaskeyT :: (Root root, MonadMask m, MonadIO m) => HaskeyT root m a -> ConcurrentDb root -> FileStoreConfig -> m a

Files

example/Main.hs view
@@ -41,7 +41,7 @@        -> ConcurrentDb Schema        -> FileStoreConfig        -> IO a-runApp (AppT m) r = runFileStoreHaskeyT (runReaderT m r)+runApp (AppT m) r = runHaskeyT (runReaderT m r)  -------------------------------------------------------------------------------- -- Definition of our custom schema. As well as query and modify functions.
haskey-mtl.cabal view
@@ -1,5 +1,5 @@ name:                haskey-mtl-version:             0.1.0.0+version:             0.2.0.0 synopsis:            A monad transformer supporting Haskey transactions. description:     This library provides a monad transformer supporting Haskey transactions,@@ -28,8 +28,8 @@     exceptions              >=0.8.3 && <0.9,     mtl                     >=2.1  && <3,     transformers            >=0.3  && <1,-    haskey-btree            >=0.2.0.0 && <1,-    haskey+    haskey-btree            >=0.2 && <1,+    haskey                  >=0.2 && <1    default-language:    Haskell2010   ghc-options:         -Wall@@ -41,7 +41,7 @@   main-is:             Main.hs   build-depends:     base          >= 4.7 && <5,-    haskey,+    haskey        >=0.2 && <1,     haskey-btree  >=0.2 && <1,     haskey-mtl,     binary        >=0.6 && <0.9 || >0.9 && <1,
src/Control/Monad/Haskey.hs view
@@ -14,7 +14,7 @@   -- * Monad , MonadHaskey(..) , HaskeyT-, runFileStoreHaskeyT+, runHaskeyT    -- * Open and create (re-exports) , FileStoreT@@ -86,12 +86,12 @@     lift = HaskeyT . lift  -- | Run Haskey transactions, backed by a file store.-runFileStoreHaskeyT :: (Root root, MonadMask m, MonadIO m)+runHaskeyT :: (Root root, MonadMask m, MonadIO m)                     => HaskeyT root m a                     -> ConcurrentDb root                     -> FileStoreConfig                     -> m a-runFileStoreHaskeyT m db config = runReaderT (fromHaskeyT m) (db, config)+runHaskeyT m db config = runReaderT (fromHaskeyT m) (db, config)  runFileStoreT' :: (MonadIO m, MonadMask m)                => FileStoreT FilePath (HaskeyT root m) a