I frequently work with Int and Word values that I need to include in log messages. In almost all cases, I want these to be represented in decimal (not hexadecimal or binary). I was wondering what the maintainers' thoughts were on adding ToLogStr instances for Int and Word. The argument against it is that there's more than one way to encode an int. However, this typeclass exists more for convenience than anything else, so maybe this is alright.
I frequently work with
Int
andWord
values that I need to include in log messages. In almost all cases, I want these to be represented in decimal (not hexadecimal or binary). I was wondering what the maintainers' thoughts were on addingToLogStr
instances forInt
andWord
. The argument against it is that there's more than one way to encode an int. However, this typeclass exists more for convenience than anything else, so maybe this is alright.