Proposal: simplify encoding of numbers in bytestring
Johan Tibell
johan.tibell at gmail.com
Wed Apr 3 06:56:04 CEST 2013
On Tue, Apr 2, 2013 at 8:29 PM, Bryan O'Sullivan <bos at serpentine.com> wrote:
> 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.
Sounds good to me.
More information about the Libraries
mailing list