Inferring instance constraints with DeriveAnyClass