Numeric supports base 8, 10, 16 but not 2 -- why?
david.feuer at gmail.com
Sun Dec 6 18:06:10 UTC 2020
In particular, I tend to want to print something out in base 2 when I'm
fussing around with bit twiddling. The last thing I want to be thinking
about at that point is writing a showing function.
On Sun, Dec 6, 2020, 1:03 PM Artem Pelenitsyn <a.pelenitsyn at gmail.com>
> 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 at haskell.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Libraries