twitter/scalding — pull request #741 by johnynek (2014-01-14 22:59:34+00:00)
Title: Simplify Grouped/CoGrouped/CoGroupable types

Please add notes on how to clean this further.

My goal was to try to make the weird logical rules about sorting visible at the type level, but I could not see an elegant way of doing that, and since any exceptions around that (see the sys.errors in this code) happen at plan time before any data has been touched, I don't think it is super critical to change it.

This code has the virtue, I think, of being source compatible with prior code, but with somewhat cleaner types.