hw-bits-0.0.0.6: Conduits for tokenizing streams.

Copyright2016 John Ky
LicenseMIT
Safe HaskellNone
LanguageHaskell2010

HaskellWorks.Data.Bits.BitWise

Contents

Description

Succinct operations.

Synopsis

Bit map

class BitWise a where Source

Class of values that have bit wise logical operations

Methods

(.&.) :: a -> a -> a infixl 7 Source

Bit wise AND

(.|.) :: a -> a -> a infixl 5 Source

Bit wise OR

(.^.) :: a -> a -> a infixl 6 Source

Bit wise XOR

comp :: a -> a Source

Bit wise complement

all0s :: a Source

Bit-wise value of the given type with all bits set to zero

all1s :: a Source

Bit-wise value of the given type with all bits set to one

class Shift a where Source

Class of values that have shift operations

Methods

(.<.) :: a -> Count -> a infixl 8 Source

Shift left by the specified count

(.>.) :: a -> Count -> a infixl 8 Source

Shift right by the specified count