projects
/
ghc-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
777fd51
)
document minimal complete definition for Bits
author
Ross Paterson
<ross@soi.city.ac.uk>
Thu, 24 Aug 2006 14:05:04 +0000
(14:05 +0000)
committer
Ross Paterson
<ross@soi.city.ac.uk>
Thu, 24 Aug 2006 14:05:04 +0000
(14:05 +0000)
Data/Bits.hs
patch
|
blob
|
history
diff --git
a/Data/Bits.hs
b/Data/Bits.hs
index
d33f7ee
..
ded147a
100644
(file)
--- a/
Data/Bits.hs
+++ b/
Data/Bits.hs
@@
-66,6
+66,10
@@
The 'Bits' class defines bitwise operations over integral types.
* Bits are numbered from 0 with bit 0 being the least
significant bit.
* Bits are numbered from 0 with bit 0 being the least
significant bit.
+
+Minimal complete definition: '.&.', '.|.', 'xor', 'complement',
+('shift' or ('shiftL' and 'shiftR')), ('rotate' or ('rotateL' and 'rotateR')),
+'bitSize' and 'isSigned'.
-}
class Num a => Bits a where
-- | Bitwise \"and\"
-}
class Num a => Bits a where
-- | Bitwise \"and\"