testBit package:rebase

x `testBit` i is the same as x .&. bit n /= 0 In other words it returns True if the bit at offset @n is set. Can be implemented using testBitDefault if a is also an instance of Num.
Default implementation for testBit. Note that: testBitDefault x i = (x .&. bit i) /= 0