TODO fork HaskellDB
Simpler implementation of Distinct in terms of Aggregate.groupBy