[identity profile] pbl.livejournal.com 2016-08-18 03:23 pm (UTC)(link)
DataKinds and friends should be enough methinks, at least for a rough approximation of this. Is type inference for this decidable, though? Type checking should be.