on dev help sign in
generalize boolean operators

and remove rendundant exports

commitdc05f2647cf455aceecb80c2f3c437c5b4c8a6de authorEitan Chatav <eitan.chatav@gmail.com> dateFri 31 Aug 2018, 17:54 (8 years ago) parentd4b4cdd
1 file changed+8−12
squeal-postgresql/src/Squeal/PostgreSQL/Expression.hs+8−12
squeal-postgresql/src/Squeal/PostgreSQL/Expression.hs+8−12
@@ -63,12 +63,12 @@ module Squeal.PostgreSQL.Expression
6363 , greatest
6464 , least
6565 -- ** Conditions
66− , Condition
6766 , true
6867 , false
6968 , not_
7069 , (.&&)
7170 , (.||)
71+ , Condition
7272 , caseWhenThenElse
7373 , ifThenElse
7474 , (.==)
@@ -89,10 +89,6 @@ module Squeal.PostgreSQL.Expression
8989 , charLength
9090 , like
9191 -- ** json or jsonb operators
92− , PGarray
93− , PGarrayOf
94− , PGjsonKey
95− , PGjson_
9692 , (.->)
9793 , (.->>)
9894 , (.#>)
@@ -708,7 +704,7 @@ ceiling_
708704ceiling_ = unsafeFunction "ceiling"
709705
710706-- | 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
712708-- a three valued logic.
713709type Condition schema from grouping params =
714710 Expression schema from grouping params ('Null 'PGbool)
@@ -733,18 +729,18 @@ not_ = unsafeUnaryOp "NOT"
733729-- | >>> printSQL $ true .&& false
734730-- (TRUE AND FALSE)
735731(.&&)
736− :: Condition schema from grouping params
737− -> Condition schema from grouping params
738− -> Condition schema from grouping params
732+ :: Expression schema from grouping params (nullity 'PGbool)
733+ -> Expression schema from grouping params (nullity 'PGbool)
734+ -> Expression schema from grouping params (nullity 'PGbool)
739735infixr 3 .&&
740736(.&&) = unsafeBinaryOp "AND"
741737
742738-- | >>> printSQL $ true .|| false
743739-- (TRUE OR FALSE)
744740(.||)
745− :: Condition schema from grouping params
746− -> Condition schema from grouping params
747− -> Condition schema from grouping params
741+ :: Expression schema from grouping params (nullity 'PGbool)
742+ -> Expression schema from grouping params (nullity 'PGbool)
743+ -> Expression schema from grouping params (nullity 'PGbool)
748744infixr 2 .||
749745(.||) = unsafeBinaryOp "OR"
750746