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

Deprecated. Use Opaleye.Field instead. Will be removed in version 0.11.

Functions for working directly with Columns.

Please note that numeric Column types are instances of Num, so you can use *, /, +, - on them.

  • 1 type
  • 8 values
  • Packageopaleye-0.10.8.0
  • Exports10
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceColumn.hs

Column

1 declaration

Working with NULL

3 declarations

Unsafe operations

3 declarations
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.

Entire module

3 declarations