apiary-mongoDB 0.17.0.0 → 1.0.0
raw patch · 2 files changed
+5/−4 lines, 2 filesdep ~apiary
Dependency ranges changed: apiary
Files
- apiary-mongoDB.cabal +2/−2
- src/Web/Apiary/MongoDB.hs +3/−2
apiary-mongoDB.cabal view
@@ -1,5 +1,5 @@ name: apiary-mongoDB-version: 0.17.0.0+version: 1.0.0 synopsis: mongoDB support for apiary web framework. -- description: license: MIT@@ -19,7 +19,7 @@ exposed-modules: Web.Apiary.MongoDB other-modules: build-depends: base >=4.6 && <4.8- , apiary >=0.17 && <0.18+ , apiary >=1.0 && <1.1 , mongoDB >=2.0 && <2.1 , resource-pool >=0.2 && <0.3 , data-default-class >=0.0 && <0.1
src/Web/Apiary/MongoDB.hs view
@@ -25,6 +25,7 @@ import Control.Monad.IO.Class import Control.Monad.Trans.Control import Control.Exception.Lifted+import Control.Monad.Apiary.Action import Web.Apiary import Web.Apiary.Heroku@@ -34,7 +35,7 @@ import Data.Default.Class import Data.Time(NominalDiffTime) import Data.Pool-import Data.Apiary.Proxy+import Data.Apiary.Compat import Data.Apiary.Extension import qualified Data.Text as T import qualified Data.Text.Read as T@@ -108,7 +109,7 @@ -- -- if you want to access other db, other accessmode, please use 'useDb' or 'accessMode'. access :: (Has MongoDB exts, MonadBaseControl IO m, MonadIO m)- => Action (ActionT exts m) a -> ActionT exts m a+ => Action (ActionT exts prms m) a -> ActionT exts prms m a access m = do MongoDB mongo conf <- getExt (Proxy :: Proxy MongoDB) withResource mongo $ \p ->