add instance PrintfArg Ratio

Henning Thielemann lemming at henning-thielemann.de
Fri Feb 7 21:44:14 UTC 2020


On Fri, 7 Feb 2020, Dannyu NDos wrote:

> It just is so convenient.
> 
> instance (Integral a, Show a) => PrintfArg (Ratio a) where

Why should a Printf instance be base on Show? Wouldn't it better to format 
numerator and denominator using printf, too?


More information about the Libraries mailing list