fun deps and constraints in data decls