on dev help sign in
docs
commitb35affc0ae932e20571b43353cdc8e7d24044fc6 authorEitan Chatav <eitan@Eitans-MacBook-Pro.local> dateSat 6 Apr 2019, 14:27 (8 years ago) parent6a37c51
1 file changed+7
squeal-postgresql/src/Squeal/PostgreSQL/Expression/Aggregate.hs+7
squeal-postgresql/src/Squeal/PostgreSQL/Expression/Aggregate.hs+7
@@ -96,6 +96,7 @@ class Aggregate expr1 exprN aggr
9696
9797 {- |
9898 the bitwise AND of all non-null input values, or null if none
99+
99100 >>> :{
100101 let
101102 expression :: Expression '[] commons ('Grouped bys) schemas params '[tab ::: '["col" ::: null 'PGint4]] ('Null 'PGint4)
@@ -194,6 +195,7 @@ class Aggregate expr1 exprN aggr
194195 -> aggr ('Null (PGAvg ty))
195196
196197 {- | correlation coefficient
198+
197199 >>> :{
198200 let
199201 expression :: Expression '[] c ('Grouped g) s p '[t ::: '["x" ::: 'NotNull 'PGfloat8, "y" ::: 'NotNull 'PGfloat8]] ('Null 'PGfloat8)
@@ -207,6 +209,7 @@ class Aggregate expr1 exprN aggr
207209 -> aggr ('Null 'PGfloat8)
208210
209211 {- | population covariance
212+
210213 >>> :{
211214 let
212215 expression :: Expression '[] c ('Grouped g) s p '[t ::: '["x" ::: 'NotNull 'PGfloat8, "y" ::: 'NotNull 'PGfloat8]] ('Null 'PGfloat8)
@@ -220,6 +223,7 @@ class Aggregate expr1 exprN aggr
220223 -> aggr ('Null 'PGfloat8)
221224
222225 {- | sample covariance
226+
223227 >>> :{
224228 let
225229 winFun :: WindowFunction '[] c 'Ungrouped s p '[t ::: '["x" ::: 'NotNull 'PGfloat8, "y" ::: 'NotNull 'PGfloat8]] ('Null 'PGfloat8)
@@ -233,6 +237,7 @@ class Aggregate expr1 exprN aggr
233237 -> aggr ('Null 'PGfloat8)
234238
235239 {- | average of the independent variable (sum(X)/N)
240+
236241 >>> :{
237242 let
238243 expression :: Expression '[] c ('Grouped g) s p '[t ::: '["x" ::: 'NotNull 'PGfloat8, "y" ::: 'NotNull 'PGfloat8]] ('Null 'PGfloat8)
@@ -246,6 +251,7 @@ class Aggregate expr1 exprN aggr
246251 -> aggr ('Null 'PGfloat8)
247252
248253 {- | average of the dependent variable (sum(Y)/N)
254+
249255 >>> :{
250256 let
251257 winFun :: WindowFunction '[] c 'Ungrouped s p '[t ::: '["x" ::: 'NotNull 'PGfloat8, "y" ::: 'NotNull 'PGfloat8]] ('Null 'PGfloat8)
@@ -259,6 +265,7 @@ class Aggregate expr1 exprN aggr
259265 -> aggr ('Null 'PGfloat8)
260266
261267 {- | number of input rows in which both expressions are nonnull
268+
262269 >>> :{
263270 let
264271 winFun :: WindowFunction '[] c 'Ungrouped s p '[t ::: '["x" ::: 'NotNull 'PGfloat8, "y" ::: 'NotNull 'PGfloat8]] ('Null 'PGint8)