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

An SQL-generating DSL targeting PostgreSQL. Allows Postgres queries to be written within Haskell in a typesafe and composable fashion.

You might like to look at

  • 1 type
  • 4 values
  • Packageopaleye-0.10.8.0
  • Exports6
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceOpaleye.hs
valueunsafeCast :: String -> Field_ n a -> Field_ n b
#

Cast a column to any other type. Implements Postgres's :: or CAST( ... AS ... ) operations. This is safe for some conversions, such as uuid to text.

valueunsafeCoerceColumn :: Field_ n a -> Field_ n' b
#

Treat a Column as though it were of a different type. If such a treatment is not valid then Postgres may fail with an error at SQL run time.