Proposal: add `Proxy`fied versions of `bitSizeMaybe` and `finiteBitSize`

Tikhon Jelvis tikhon at jelv.is
Thu Dec 14 05:41:22 UTC 2017


The Const type does not see much direct use in other common Haskell
packages. (I only ever encounter it through lens.) So while that might be
an elegant design, I think it will make the API more confusing for
newcomers.

On Dec 13, 2017 9:38 PM, "Zemyla" <zemyla at gmail.com> wrote:

> I honestly think we should make it a Const Int a, instead of a
> function, so that it's a number in the typeclass dictionary and not a
> function.
>
> On Wed, Dec 13, 2017 at 10:41 PM, M Farkas-Dyck <strake888 at gmail.com>
> wrote:
> > On 2017-12-13 08:19 PM, David Feuer wrote:
> >>
> >> +1, but we should also do this for sizeOf and alignment in
> >> Foreign.Storable.
> >
> >
> > Yes, good idea
> >
> > _______________________________________________
> > Libraries mailing list
> > Libraries at haskell.org
> > http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries
> _______________________________________________
> Libraries mailing list
> Libraries at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/libraries/attachments/20171213/83a6bad9/attachment.html>


More information about the Libraries mailing list