
9 Jan
2017
9 Jan
'17
1:29 p.m.
The bitSize typeclass method has been deprecated since 4.7. However, library author still have to implement it to avoid a warning. I propose that a default implementation using bitSizeMaybe be added. It would look like this: bitSize x = case bitSizeMaybe x of Nothing -> error "bitSize is deprecated and the type in question does not have a finite bit size" Just a -> a -- -Andrew Thaddeus Martin