Module

Data.Int.Bits

This module defines bitwise operations for the Int type.

#and

and :: Int -> Int -> Int

Bitwise AND.

#(.&.)

Operator alias for Data.Int.Bits.and (left-associative / precedence 10)

#or

or :: Int -> Int -> Int

Bitwise OR.

#(.|.)

Operator alias for Data.Int.Bits.or (left-associative / precedence 10)

#xor

xor :: Int -> Int -> Int

Bitwise XOR.

#(.^.)

Operator alias for Data.Int.Bits.xor (left-associative / precedence 10)

#shl

shl :: Int -> Int -> Int

Bitwise shift left.

#shr

shr :: Int -> Int -> Int

Bitwise shift right.

#zshr

zshr :: Int -> Int -> Int

Bitwise zero-fill shift right.

#complement

complement :: Int -> Int

Bitwise NOT.

Modules