@@ -440,7 +440,7 @@ typedGroupBy
440440typedGroupBy = from usersTable # select @"name" # groupBy @"name"
441441
442442typedCountStar
443− :: Q _ (name :: String, cnt :: Int) () _
443+ :: Q _ (name :: String, cnt :: BigInt) () _
444444typedCountStar = from usersTable
445445 # select @"name, COUNT(*) AS cnt"
446446 # groupBy @"name"
@@ -464,14 +464,14 @@ typedMinMax = from usersTable
464464 # groupBy @"name"
465465
466466typedHaving
467− :: Q _ (name :: String, cnt :: Int) (minCount :: Int) _
467+ :: Q _ (name :: String, cnt :: BigInt) (minCount :: Int) _
468468typedHaving = from usersTable
469469 # select @"name, COUNT(*) AS cnt"
470470 # groupBy @"name"
471471 # having @"COUNT(*) > $minCount"
472472
473473typedFullAggregate
474− :: Q _ (name :: String, cnt :: Int) (min :: Int) _
474+ :: Q _ (name :: String, cnt :: BigInt) (min :: Int) _
475475typedFullAggregate = from usersTable
476476 # select @"name, COUNT(*) AS cnt"
477477 # groupBy @"name"
@@ -480,7 +480,7 @@ typedFullAggregate = from usersTable
480480 # limit @"10"
481481
482482typedWhereGroupByHaving
483− :: Q _ (name :: String, cnt :: Int) (age :: Int, minCount :: Int) _
483+ :: Q _ (name :: String, cnt :: BigInt) (age :: Int, minCount :: Int) _
484484typedWhereGroupByHaving = from usersTable
485485 # select @"name, COUNT(*) AS cnt"
486486 # where_ @"age > $age"