Numeric supports base 8, 10, 16 but not 2 -- why?

Emily Pillmore emilypi at cohomolo.gy
Sun Dec 6 19:01:33 UTC 2020


+1

On Sun, Dec 06, 2020 at 1:10 PM, chessai < chessai1996 at gmail.com > wrote:

> 
> +1
> 
> On Sun, Dec 6, 2020, 12:07 Oleg Grenrus < oleg. grenrus@ iki. fi (
> oleg.grenrus at iki.fi ) > wrote:
> 
> 
>> 
>> 
>> +1
>> 
>> 
>> On 6.12.2020 20.04, David Feuer wrote:
>> 
>> 
>>> Agreed!
>>> 
>>> On Sun, Dec 6, 2020, 1:03 PM Artem Pelenitsyn < a. pelenitsyn@ gmail. com (
>>> a.pelenitsyn at gmail.com ) > wrote:
>>> 
>>> 
>>>> Dear Libraries,
>>>> 
>>>> 
>>>> I noticed the Numeric module has special-cased functions to read and show
>>>> integral types in bases 8, 10, 16 but not for base 2. There are also
>>>> generic-over-base versions, so an interested client can implement the
>>>> special case for base 2 themselves with little hassle. Still, I think base
>>>> 2 is common enough that we could support it along with base 8, 10, 16 out
>>>> of the box.
>>>> 
>>>> 
>>>> 
>>>> What do you think? I'm happy to submit a merge request if you concur.
>>>> 
>>>> 
>>>> Kind regards,
>>>> Artem Pelenitsyn
>>>> 
>>>> _______________________________________________
>>>> Libraries mailing list
>>>> Libraries@ haskell. org ( Libraries at haskell.org )
>>>> http:/ / mail. haskell. org/ cgi-bin/ mailman/ listinfo/ libraries (
>>>> http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries )
>>>> 
>>> 
>>> 
>>> 
>>> _______________________________________________
>>> Libraries mailing list
>>> Libraries@ haskell. org ( Libraries at haskell.org )
>>> http:/ / mail. haskell. org/ cgi-bin/ mailman/ listinfo/ libraries (
>>> http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries )
>>> 
>> 
>> 
>> _______________________________________________
>> Libraries mailing list
>> Libraries@ haskell. org ( Libraries at haskell.org )
>> http:/ / mail. haskell. org/ cgi-bin/ mailman/ listinfo/ libraries (
>> http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries )
>> 
> 
> 
> 
> 
> _______________________________________________
> Libraries mailing list
> Libraries@ haskell. org ( Libraries at haskell.org )
> http:/ / mail. haskell. org/ cgi-bin/ mailman/ listinfo/ libraries (
> http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries )
> 
> 
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/libraries/attachments/20201206/d93fb5bd/attachment.html>


More information about the Libraries mailing list