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.Sql

  • 4 values
  • Packageopaleye-0.10.8.0
  • Exports4
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceSql.hs

Showing SQL

2 declarations
valueshowSql :: Default Unpackspec fields fields => Select fields -> Maybe String
#

Show the SQL query string generated from the Select.

When Nothing is returned it means that the Select returns zero rows.

Example type specialization:

showSql :: Select (Field a, Field b) -> Maybe String

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

showSql :: Select (Foo (Field a) (Field b) (Field c)) -> Maybe String

Explicit versions

2 declarations