wheb-mongo-0.0.2.0: MongoDB plugin for Wheb

Safe HaskellNone
LanguageHaskell98

Web.Wheb.Plugins.Mongo

Description

Basic implementation of MongoDB connection.

Adds default instances for SessionApp and AuthApp for MongoApp.

Synopsis

Documentation

runAction :: (MongoApp g, MonadIO m) => Action IO a -> WhebT g s m a Source

Run a MongoDB Action Monad in WhebT

initMongo :: Text -> Text -> InitM g s m MongoContainer Source

Initialize mongo with "host:post" and default database.

catchResult :: MonadIO m => IO b -> WhebT g s m b Source

Push an error from Mongo to a 500 Error.