Given that we've chosen addition as the monoid for money, we can define an instance for Group too.
But where should we get group from? The groups package seems almost unused, and I can't find its source on github.
Maybe we should depend on the albegra package instead.
It's worth looking at that package. As well as group, what other algebraic structures does it provide that money fits?
Given that we've chosen addition as the monoid for money, we can define an instance for Group too.
But where should we get group from? The groups package seems almost unused, and I can't find its source on github.
Maybe we should depend on the albegra package instead.
It's worth looking at that package. As well as group, what other algebraic structures does it provide that money fits?