packages feed

persistent-mongoDB 1.2.0 → 1.2.0.1

raw patch · 2 files changed

+5/−4 lines, 2 filesPVP: minor bump suggested

API additions: PVP suggests at least a minor version bump

API changes (from Hackage documentation)

+ Database.Persist.MongoDB: instance Show MongoAuth
+ Database.Persist.MongoDB: instance Show MongoConf

Files

Database/Persist/MongoDB.hs view
@@ -361,7 +361,7 @@       Just doc -> Right doc     Just e -> Left e     where-      findErr result = DB.lookup "err" (DB.at "lastErrorObject" result)+      findErr result = DB.lookup "err" =<< (DB.lookup "lastErrorObject" result)  instance (Applicative m, Functor m, Trans.MonadIO m, MonadBaseControl IO m) => PersistQuery (DB.Action m) where     update _ [] = return ()@@ -687,7 +687,8 @@ dummyFromFilts :: [Filter v] -> v dummyFromFilts _ = error "dummyFromFilts" -data MongoAuth = MongoAuth DB.Username DB.Password+data MongoAuth = MongoAuth DB.Username DB.Password deriving Show+ -- | Information required to connect to a mongo database data MongoConf = MongoConf     { mgDatabase :: Text@@ -698,7 +699,7 @@     , mgPoolStripes :: Int     , mgStripeConnections :: Int     , mgConnectionIdleTime :: NominalDiffTime-    }+    } deriving Show  instance PersistConfig MongoConf where     type PersistConfigBackend MongoConf = DB.Action
persistent-mongoDB.cabal view
@@ -1,5 +1,5 @@ name:            persistent-mongoDB-version:         1.2.0+version:         1.2.0.1 license:         MIT license-file:    LICENSE author:          Greg Weber <greg@gregweber.info>