I remember a compiler plugin package from a while ago that would auto generating functions based on their type. It was very useful for transforming tuples to the right form like ((a,b),c) -> (a,(b,c))
and the like.
Do you know what the package was called?