Proposal: Add hasBitSize to Data.Bits.Bits
Edward Kmett
ekmett at gmail.com
Mon Aug 27 17:21:25 CEST 2012
Fair enough.
Sent from my iPhone
On Aug 26, 2012, at 4:38 PM, Ian Lynagh <igloo at earth.li> wrote:
> On Wed, Aug 22, 2012 at 07:49:49PM -0400, Edward Kmett wrote:
>>
>> deprecate, but not remove bitSize this iteration, and make a separate
>> class FiniteBits for things with a finite, fixed number of bits:
>>
>>> class Bits b => FiniteBits b where
>>> finiteBitSize :: b -> Int
>>> finiteBitSize = bitSize
>
> Isn't giving that default implementation a bad idea? Any instance that
> uses it wiill just break when the deprecated bitSize is removed.
>
>
> Thanks
> Ian
>
>
> _______________________________________________
> Libraries mailing list
> Libraries at haskell.org
> http://www.haskell.org/mailman/listinfo/libraries
More information about the Libraries
mailing list