@@ -63,12 +63,12 @@ module Squeal.PostgreSQL.Expression
63 , greatest
63 , greatest
65 -- ** Conditions
65 -- ** Conditions
72 , caseWhenThenElse
72 , caseWhenThenElse
73 , ifThenElse
73 , ifThenElse
@@ -89,10 +89,6 @@ module Squeal.PostgreSQL.Expression
89 , charLength
89 , charLength
91 -- ** json or jsonb operators
91 -- ** json or jsonb operators
@@ -708,7 +704,7 @@ ceiling_
708ceiling_ = unsafeFunction "ceiling"
704ceiling_ = unsafeFunction "ceiling"
710-- | A `Condition` is an `Expression`, which can evaluate
706-- | A `Condition` is an `Expression`, which can evaluate
711−-- to `TRUE`, `FALSE` or `NULL`. This is because SQL uses
707+-- to `true`, `false` or `null_`. This is because SQL uses
712-- a three valued logic.
708-- a three valued logic.
713type Condition schema from grouping params =
709type Condition schema from grouping params =
714 Expression schema from grouping params ('Null 'PGbool)
710 Expression schema from grouping params ('Null 'PGbool)
@@ -733,18 +729,18 @@ not_ = unsafeUnaryOp "NOT"
733-- | >>> printSQL $ true .&& false
729-- | >>> printSQL $ true .&& false
734-- (TRUE AND FALSE)
730-- (TRUE AND FALSE)
736− :: Condition schema from grouping params
732+ :: Expression schema from grouping params (nullity 'PGbool)
737− -> Condition schema from grouping params
733+ -> Expression schema from grouping params (nullity 'PGbool)
738− -> Condition schema from grouping params
734+ -> Expression schema from grouping params (nullity 'PGbool)
739infixr 3 .&&
735infixr 3 .&&
740(.&&) = unsafeBinaryOp "AND"
736(.&&) = unsafeBinaryOp "AND"
742-- | >>> printSQL $ true .|| false
738-- | >>> printSQL $ true .|| false
743-- (TRUE OR FALSE)
739-- (TRUE OR FALSE)
745− :: Condition schema from grouping params
741+ :: Expression schema from grouping params (nullity 'PGbool)
746− -> Condition schema from grouping params
742+ -> Expression schema from grouping params (nullity 'PGbool)
747− -> Condition schema from grouping params
743+ -> Expression schema from grouping params (nullity 'PGbool)
748infixr 2 .||
744infixr 2 .||
749(.||) = unsafeBinaryOp "OR"
745(.||) = unsafeBinaryOp "OR"