<div dir="ltr">The bytestring builder API has a large number of entry points for encoding numbers:<div><br></div><font face="courier new, monospace"> int8Dec<br> , int16Dec<br> , int32Dec<br> , int64Dec<br> , intDec<br>
, integerDec<br><br> , word8Dec<br> , word16Dec<br> , word32Dec<br> , word64Dec<br> , wordDec</font><div><br><div style>Contrast this with the text library:</div><div style><br></div><div style><div><font face="courier new, monospace"> decimal :: Integral a => a -> Builder</font></div>
<div><br></div><div style>I want to deprecate the 11 <font face="courier new, monospace">*Dec</font> functions in favour of the same single-entry-point API used by text: it's way simpler, and no less efficient.</div><div style>
<br></div><div style>(Really, the <font face="courier new, monospace">*Hex</font> functions need the same treatment, but they're less of a priority to me.)</div></div></div></div>