-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Backend for persistent library using Zookeeper. -- -- Based on the Zookeeper package. @package persistent-zookeeper @version 0.0.2 module Database.Persist.Zookeeper -- | Information required to connect to a Zookeeper server data ZookeeperConf ZookeeperConf :: String -> Timeout -> Int -> NominalDiffTime -> Int -> ZookeeperConf zCoord :: ZookeeperConf -> String zTimeout :: ZookeeperConf -> Timeout zNumStripes :: ZookeeperConf -> Int zIdleTime :: ZookeeperConf -> NominalDiffTime zMaxResources :: ZookeeperConf -> Int type Connection = Pool ZooStat -- | Monad reader transformer keeping Zookeeper connection through out the -- work newtype ZookeeperT m a ZookeeperT :: ReaderT Connection m a -> ZookeeperT m a runZookeeperT :: ZookeeperT m a -> ReaderT Connection m a runZookeeperPool :: ZookeeperT m a -> Connection -> m a -- | Run a connection reader function against a Zookeeper configuration withZookeeperConn :: (Monad m, MonadIO m) => ZookeeperConf -> (Connection -> m a) -> m a -- | Extracts connection from ZookeeperT monad transformer thisConnection :: Monad m => ZookeeperT m Connection data ZookeeperBackend execZookeeperT :: (Read a, Show a, Monad m, MonadIO m) => (Zookeeper -> IO (Either ZKError a)) -> ZookeeperT m a