Haskell - Haskell-Cafe
only in this topic
Open this post in threaded view
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.
Haskell-Cafe mailing list
To (un)subscribe, modify options or view archives go to:
Only members subscribed via the mailman list are allowed to post.
Return to Haskell - Haskell-Cafe
1 view|%1 views
Free forum by Nabble
Edit this page