bitSize both required and deprecated
Herbert Valerio Riedel
hvriedel at gmail.com
Fri Nov 1 15:18:39 UTC 2019
The default impl was added in the course of
https://phabricator.haskell.org/D4857
https://ghc.haskell.org/trac/ghc/ticket/12970
with the intention of facilitating its eventual removal by providing a
smoother migration path over a 3-year compat-window.
What I can't explain is why the `MINIMAL` pragma wasn't adapted to take
into account that `bitSize` now has a default impl;
But then again, https://phabricator.haskell.org/D4857 also states there was
no code review logged:
This revision was not accepted when it landed; it landed in state Needs
> Review.
... :-)
On Fri, Nov 1, 2019 at 12:08 PM chessai . <chessai1996 at gmail.com> wrote:
> All,
>
> In Data.Bits.Bits, `bitSize` has been marked deprecated for a while.
> but in 4.12, it was also given a default implementation. The issue is
> that it is in the minimal pragma as a required method. So, if I define
> it, I get a deprecation warning, but if I don't define it, I get a
> warning about missing implementations.
>
> Is this the intended behaviour?
>
> Thanks
> _______________________________________________
> 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/20191101/6b382348/attachment.html>
More information about the Libraries
mailing list