I have a function that has signature
(string * TaggedExpense list) list -> CategorisedExpenseSummary list
with the type definition type CategorisedExpenseSummary = string*ExpensesSummary.
Now I need the exact same transformation done, but with the types
(datetime * TaggedExpense list) list -> CategorisedExpenseSummary list
and type DateExpenseSummary = datetime*ExpensesSummary.
What’s the cleanest design in this case?