Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- newtype CompositeValue a = CompositeValue a
Documentation
newtype CompositeValue a Source #
Useful with DerivingVia
to get a DecodeValue
instance for any
product type by parsing it as a composite.
Example
data Point = Point Int64 Int64 deriving stock (Generic) deriving (DecodeValue) via CompositeValue Point
Instances
(Generic a, GToComposite (Rep a)) => DecodeValue (CompositeValue a) Source # | |
Defined in Hasql.Interpolate.Internal.CompositeValue decodeValue :: Value (CompositeValue a) Source # |