@@ -1,3 +1,13 @@
1+{-|
2+Module: Squeal.PostgreSQL.Definition
3+Description: Pooled connections
4+Copyright: (c) Eitan Chatav, 2017
5+Maintainer: eitan@morphism.tech
6+Stability: experimental
7+
8+A `MonadPQ` for pooled connections.
9+-}
10+
111{-# LANGUAGE
212 DataKinds
313 , DeriveFunctor
@@ -22,6 +32,8 @@ import Generics.SOP (K(..))
2232import Squeal.PostgreSQL.PQ
2333import Squeal.PostgreSQL.Schema
2434
35+-- | `PoolPQ` @schema@ should be a drop-in replacement for
36+-- `PQ schema schema`.
2537newtype PoolPQ (schema :: TablesType) m x =
2638 PoolPQ { runPoolPQ :: Pool (K Connection schema) -> m x }
2739 deriving Functor