haskus-binary-1.5: Haskus binary format manipulation

Safe HaskellNone
LanguageHaskell2010

Haskus.Binary.Bits.Bitwise

Description

Bitwise bit operations

Synopsis

Documentation

class Bitwise a where Source #

Bitwise bit operations

Methods

(.&.) :: a -> a -> a Source #

Bitwise "and"

(.|.) :: a -> a -> a Source #

Bitwise "or"

xor :: a -> a -> a Source #

Bitwise "xor"

Instances
Bitwise Int Source # 
Instance details

Defined in Haskus.Binary.Bits.Bitwise

Methods

(.&.) :: Int -> Int -> Int Source #

(.|.) :: Int -> Int -> Int Source #

xor :: Int -> Int -> Int Source #

Bitwise Int8 Source # 
Instance details

Defined in Haskus.Binary.Bits.Bitwise

Methods

(.&.) :: Int8 -> Int8 -> Int8 Source #

(.|.) :: Int8 -> Int8 -> Int8 Source #

xor :: Int8 -> Int8 -> Int8 Source #

Bitwise Int16 Source # 
Instance details

Defined in Haskus.Binary.Bits.Bitwise

Bitwise Int32 Source # 
Instance details

Defined in Haskus.Binary.Bits.Bitwise

Bitwise Int64 Source # 
Instance details

Defined in Haskus.Binary.Bits.Bitwise

Bitwise Integer Source # 
Instance details

Defined in Haskus.Binary.Bits.Bitwise

Bitwise Natural Source # 
Instance details

Defined in Haskus.Binary.Bits.Bitwise

Bitwise Word Source # 
Instance details

Defined in Haskus.Binary.Bits.Bitwise

Methods

(.&.) :: Word -> Word -> Word Source #

(.|.) :: Word -> Word -> Word Source #

xor :: Word -> Word -> Word Source #

Bitwise Word8 Source # 
Instance details

Defined in Haskus.Binary.Bits.Bitwise

Bitwise Word16 Source # 
Instance details

Defined in Haskus.Binary.Bits.Bitwise

Bitwise Word32 Source # 
Instance details

Defined in Haskus.Binary.Bits.Bitwise

Bitwise Word64 Source # 
Instance details

Defined in Haskus.Binary.Bits.Bitwise

Bitwise Buffer Source # 
Instance details

Defined in Haskus.Binary.Buffer

Bitwise a => Bitwise (AsLittleEndian a) Source # 
Instance details

Defined in Haskus.Binary.Endianness

Bitwise a => Bitwise (AsBigEndian a) Source # 
Instance details

Defined in Haskus.Binary.Endianness

(KnownNat n, Bitwise a, Storable a) => Bitwise (Vector n a) Source # 
Instance details

Defined in Haskus.Binary.Vector

Methods

(.&.) :: Vector n a -> Vector n a -> Vector n a Source #

(.|.) :: Vector n a -> Vector n a -> Vector n a Source #

xor :: Vector n a -> Vector n a -> Vector n a Source #