opaleye-0.2: An SQL-generating DSL targeting PostgreSQL

Safe HaskellSafe-Inferred
LanguageHaskell98

Opaleye.Column

Synopsis

Documentation

null :: Column (Nullable a) Source

A NULL of any type

matchNullable :: Column b -> (Column a -> Column b) -> Column (Nullable a) -> Column b Source

The Opaleye equivalent of the maybe function

fromNullable :: Column a -> Column (Nullable a) -> Column a Source

The Opaleye equivalent of the fromMaybe function

data Column a Source

The Num and Fractional instances for Column a are too general. For example, they allow you to add two Column Strings. This will be fixed in a subsequent release.