Proposal: Add hasBitSize to Data.Bits.Bits

Henning Thielemann lemming at
Tue Aug 14 00:19:36 CEST 2012

On Mon, 13 Aug 2012, Johan Tibell wrote:

> On Mon, Aug 13, 2012 at 2:48 PM, Henning Thielemann
> <lemming at> wrote:
>> How about two versions of 'bitSize' - one with Maybe return type in the Bits
>> class and one without Maybe in a FixedBitSize subclass?
> Is this worth breaking existing users of bitSize over?

If the method of 'FixedBitSize' is named 'bitSize' then only the type 
signature will be affected (FixedBitSize constraint instead of Bits). 
Although I don't know whether this is a good solution.

> If anything it seems more worthwhile to throw out Integer from the Bits 
> class and declare Bits to be for fixed sized entities.

More information about the Libraries mailing list