hasql-interpolate-0.1.0.0: QuasiQuoter that supports expression interpolation for hasql
Safe HaskellNone
LanguageHaskell2010

Hasql.Interpolate.Internal.CompositeValue

Synopsis

Documentation

newtype CompositeValue a Source #

Useful with DerivingVia to get a DecodeValue instance for any product type by parsing it as a composite.

Example

Expand
data Point = Point Int64 Int64
  deriving stock (Generic)
  deriving (DecodeValue) via CompositeValue Point

Constructors

CompositeValue a 

Instances

Instances details
(Generic a, GToComposite (Rep a)) => DecodeValue (CompositeValue a) Source # 
Instance details

Defined in Hasql.Interpolate.Internal.CompositeValue