-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | A pool of connections for Hasql -- -- A pool of connections for Hasql @package hasql-pool @version 0.7 module Hasql.Pool -- | A pool of connections to DB. data Pool -- | Given the pool-size and connection settings create a connection-pool. acquire :: Int -> Settings -> IO Pool -- | Release all the connections in the pool. release :: Pool -> IO () -- | A union over the connection establishment error and the session error. data UsageError ConnectionUsageError :: ConnectionError -> UsageError SessionUsageError :: QueryError -> UsageError PoolIsReleasedUsageError :: UsageError -- | Use a connection from the pool to run a session and return the -- connection to the pool, when finished. use :: Pool -> Session a -> IO (Either UsageError a) instance GHC.Classes.Eq Hasql.Pool.UsageError instance GHC.Show.Show Hasql.Pool.UsageError