
26 Aug
2012
26 Aug
'12
8:38 p.m.
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