Open lingnand opened 8 years ago
I agree that the last type param it makes intuitive sense for the last type parameter to the 'container'. Is there a more mathematical/computer science/robust theory behind type parameter ordering?
Getting newtype deriving would be kind of nice.
At this point the question is is the improvement worth breaking every single user of lens that makes use of makeClassy?
I don't think so at this time. Existing users would get all sorts of weird type errors.
Right now
makeClassy
generates class for parameterized data types like thisI think it's actually a better idea to reorder it such that
A few reasons: