Proposal: simplify encoding of numbers in bytestring

Edward Kmett ekmett at gmail.com
Wed Apr 3 08:28:46 CEST 2013


+1 from me


On Wed, Apr 3, 2013 at 1:42 AM, Milan Straka <fox at ucw.cz> wrote:

> Hi,
>
> > -----Original message-----
> > From: Bryan O'Sullivan <bos at serpentine.com>
> > Sent: 2 Apr 2013, 20:29
> >
> > 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.
>
> +1 here.
>
> Cheers,
> Milan
>
> _______________________________________________
> Libraries mailing list
> Libraries at haskell.org
> http://www.haskell.org/mailman/listinfo/libraries
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/libraries/attachments/20130403/303a781e/attachment.htm>


More information about the Libraries mailing list