From 0e9084b04f6c406baa4c2cb605ce897368674319 Mon Sep 17 00:00:00 2001 From: Simon Marlow Date: Wed, 14 Jul 2010 10:33:10 +0000 Subject: [PATCH] clarify meaning of bit --- Data/Bits.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Data/Bits.hs b/Data/Bits.hs index 62b64a3..8b5432b 100644 --- a/Data/Bits.hs +++ b/Data/Bits.hs @@ -126,7 +126,7 @@ class Num a => Bits a where | i>0 = (x `shift` i) .|. (x `shift` (i-bitSize x)) -} - -- | @bit i@ is a value with the @i@th bit set + -- | @bit i@ is a value with the @i@th bit set and all other bits clear bit :: Int -> a -- | @x \`setBit\` i@ is the same as @x .|. bit i@ -- 1.7.10.4