c864e9f25f6d3dbb28e37561294bb8230ee39481
[packages/haskell2010.git] / Data / Bits.hs
1 #if __GLASGOW_HASKELL__ >= 701
2 {-# LANGUAGE Safe #-}
3 #endif
4
5 -- |
6 -- This module defines bitwise operations for signed and unsigned
7 -- integers.
8
9 module Data.Bits (
10 Bits(
11 (.&.), (.|.), xor, -- :: a -> a -> a
12 complement, -- :: a -> a
13 shift, -- :: a -> Int -> a
14 rotate, -- :: a -> Int -> a
15 bit, -- :: Int -> a
16 setBit, -- :: a -> Int -> a
17 clearBit, -- :: a -> Int -> a
18 complementBit, -- :: a -> Int -> a
19 testBit, -- :: a -> Int -> Bool
20 bitSize, -- :: a -> Int
21 isSigned, -- :: a -> Bool
22 shiftL, shiftR, -- :: a -> Int -> a
23 rotateL, rotateR -- :: a -> Int -> a
24 )
25 ) where
26 import "base" Data.Bits