Skip to content

Add default implementation for Bits.bitSize

I think it would be a good idea to provide a default implementation for bitSize, example:

  bitSize b = fromMaybe (error "bitSize is undefined") (bitSizeMaybe b)

The advantage is that from now on new instances of Bits no longer need to define bitSize.

And once bitSize has been removed there will be no errors about it not being a method of class Bits.

Trac metadata
Trac field Value
Version
Type FeatureRequest
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component libraries/base
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information