mirror of
https://github.com/nikita-volkov/hasql.git
synced 2024-11-26 23:33:02 +03:00
Instances for PoolSettings
This commit is contained in:
parent
f3af81010f
commit
260425abed
@ -67,6 +67,7 @@ import qualified Data.Vector as Vector
|
||||
import qualified Data.Vector.Mutable as MVector
|
||||
import qualified Language.Haskell.TH as TH
|
||||
import qualified Language.Haskell.TH.Quote as TH
|
||||
import qualified Language.Haskell.TH.Syntax as TH
|
||||
import qualified Hasql.TH as THUtil
|
||||
|
||||
|
||||
@ -115,6 +116,12 @@ releasePool (Pool p) =
|
||||
-- Settings of a pool.
|
||||
data PoolSettings =
|
||||
PoolSettings !Int !Int
|
||||
deriving (Show)
|
||||
|
||||
instance TH.Lift PoolSettings where
|
||||
lift (PoolSettings a b) =
|
||||
[|PoolSettings a b|]
|
||||
|
||||
|
||||
-- |
|
||||
-- A smart constructor for pool settings.
|
||||
|
Loading…
Reference in New Issue
Block a user