An Aggregator takes a collection of rows of type a, groups
them, and transforms each group into a single row of type b. This
corresponds to aggregators using GROUP BY in SQL.
You should combine basic Aggregators into Aggregators on compound types by using the operations in Data.Profunctor.Product.
An Aggregator corresponds closely to a Fold from the
foldl package. Whereas an Aggregator a b takes each group of
type a to a single row of type b, a Fold a b
takes a list of a and returns a single value of type b.
Constructors
Aggregator (PackMap Aggregate PrimExpr a b)
Instances5Profunctor, ProductProfunctor, SumProfunctor, Functor, Applicative
Profunctor AggregatorDefined in opaleye-0.10.8.0 · Opaleye.Internal.AggregateProductProfunctor AggregatorDefined in opaleye-0.10.8.0 · Opaleye.Internal.AggregateSumProfunctor AggregatorDefined in opaleye-0.10.8.0 · Opaleye.Internal.AggregateFunctor (Aggregator a)Defined in opaleye-0.10.8.0 · Opaleye.Internal.AggregateApplicative (Aggregator a)Defined in opaleye-0.10.8.0 · Opaleye.Internal.Aggregate