Proposal: simplify encoding of numbers in bytestring

Bryan O'Sullivan bos at serpentine.com
Wed Apr 3 05:29:30 CEST 2013


The bytestring builder API has a large number of entry points for encoding
numbers:

      int8Dec
    , int16Dec
    , int32Dec
    , int64Dec
    , intDec
    , integerDec

    , word8Dec
    , word16Dec
    , word32Dec
    , word64Dec
    , wordDec

Contrast this with the text library:

    decimal :: Integral a => a -> Builder

I want to deprecate the 11 *Dec functions in favour of the same
single-entry-point API used by text: it's way simpler, and no less
efficient.

(Really, the *Hex functions need the same treatment, but they're less of a
priority to me.)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/libraries/attachments/20130402/fe038cb2/attachment.htm>


More information about the Libraries mailing list