Document groupBy
commit8560de9c71906955b5fdfe044b7a8c55862b46cd
authorOllie Charles <ollie@ocharles.org.uk>
dateWed 24 Mar 2021, 13:16 (6 years ago)
parent8659965
src/Rel8/Table/Aggregate.hs+2
@@ -35,6 +35,8 @@ import Rel8.Table.Recontextualize ( Aggregates )
3535import Rel8.Type.Eq ( DBEq )
3636
3737
38+-- | Group equal tables together. This works by aggregating each column in the
39+-- given table with 'groupByExpr'.
3840groupBy :: forall exprs. EqTable exprs => exprs -> Aggregate exprs
3941groupBy (toColumns -> exprs) = fromColumns $ htabulate $ \field ->
4042 case hfield dicts field of