| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Hasql.Interpolate.Internal.CompositeValue
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
Constructors
| CompositeValue a |
Instances
| (Generic a, GToComposite (Rep a)) => DecodeValue (CompositeValue a) Source # | |
Defined in Hasql.Interpolate.Internal.CompositeValue Methods decodeValue :: Value (CompositeValue a) Source # | |