Closed endgame closed 7 years ago
Yes, you can use the Applicative
operators: aggregate ((,) <$> groupBy <*> max) $ proc () -> do ...
Sorry, scratch that, it would need to be aggregate ((,) <$> lmap fst groupBy <*> lmap snd max) $ proc () -> do ...
which is quite long...
Hello @endgame. You can either do what @sjoerdvisscher suggested or use
p2 (groupBy, max)
Can I ask how you even found out about ***!
? If it's in some documentation that I wrote then I should probably change it!
Can I ask how you even found out about
***!
?
I think the stackage snapshot I was using pulled in the old version of product-profunctors and I picked it up from reading the class definition.
Now that I have a replacement, I have no objection to its removal.
(P.S. Thanks for the fast response.)
This refers to the comments on the haddock for
(***!)
:I find it useful when building aggregators in opaleye, often writing things like
aggregate (groupBy ***! max) $ proc () -> do ...
. Is there a better or more-recommended way to do that?