I need to use a number (Rational) as the type of journal Writer Monad. Unfortunately, the number is not a Monoid. Is there a module (or something) that creates Numbers instances as Monoid, or should I do it myself?
(I just want to know if it already exists somewhere, so as not to reinvent the wheel, I do not need help if necessary)
source
share