HORIZON HASKELLDocslts/ghc-10.0.x8c2f8e82026-10-19Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8c2f8e8 · 2026-10-19

Moduleopaleye-0.10.8.0Haskell2010

Opaleye.Values

  • 1 type
  • 3 values
  • Packageopaleye-0.10.8.0
  • Exports4
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceValues.hs
valuevalues :: Default Valuesspec fields fields => [fields] -> Select fields
#

values implements Postgres's VALUES construct and allows you to create a SELECT that consists of the given rows.

Example type specialization:

values :: [(Field a, Field b)] -> Select (Field a, Field b)

Assuming the makeAdaptorAndInstanceInferrable splice has been run for the product type Foo:

values :: [Foo (Field a) (Field b) (Field c)] -> S.Select (Foo (Field a) (Field b) (Field c))

Explicit versions

1 declaration

Adaptors

2 declarations
datadata Valuesspec fields fields'
#
Instances6Profunctor, ProductProfunctor, Default, Functor, Applicative