Module

Data.Int.Bits

Package
integers
Repository
purerl/purescript-integers

This module defines bitwise operations for the Int type.

#and Source

and :: Int -> Int -> Int

Bitwise AND.

#(.&.) Source

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

#or Source

or :: Int -> Int -> Int

Bitwise OR.

#(.|.) Source

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

#xor Source

xor :: Int -> Int -> Int

Bitwise XOR.

#(.^.) Source

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

#shl Source

shl :: Int -> Int -> Int

Bitwise shift left.

#shr Source

shr :: Int -> Int -> Int

Bitwise shift right.

#zshr Source

zshr :: Int -> Int -> Int

Bitwise zero-fill shift right.

#complement Source

complement :: Int -> Int

Bitwise NOT.