basement-0.0.2: Foundation scrap box of array & string

Safe HaskellNone
LanguageHaskell2010

Basement.Types.Word256

Synopsis

Documentation

data Word256 #

256 bits Word

Constructors

Word256 !Word64 !Word64 !Word64 !Word64 

Instances

Bounded Word256 # 
Enum Word256 # 
Eq Word256 # 

Methods

(==) :: Word256 -> Word256 -> Bool #

(/=) :: Word256 -> Word256 -> Bool #

Num Word256 # 
Ord Word256 # 
Show Word256 # 
Storable Word256 # 
Bits Word256 # 
HasNegation Word256 # 

Methods

negate :: Word256 -> Word256 #

Integral Word256 # 
IsNatural Word256 # 

Methods

toNatural :: Word256 -> Natural #

IsIntegral Word256 # 

Methods

toInteger :: Word256 -> Integer #

Additive Word256 # 

Methods

azero :: Word256 #

(+) :: Word256 -> Word256 -> Word256 #

scale :: IsNatural n => n -> Word256 -> Word256 #

IDivisible Word256 # 
Multiplicative Word256 # 
Subtractive Word256 # 

Associated Types

type Difference Word256 :: * #

NormalForm Word256 # 

Methods

toNormalForm :: Word256 -> () #

PrimMemoryComparable Word256 # 
PrimType Word256 # 
From Word8 Word256 # 

Methods

from :: Word8 -> Word256 #

From Word16 Word256 # 

Methods

from :: Word16 -> Word256 #

From Word32 Word256 # 

Methods

from :: Word32 -> Word256 #

From Word64 Word256 # 

Methods

from :: Word64 -> Word256 #

(KnownNat n, NatWithinBound Word256 n) => From (Zn n) Word256 # 

Methods

from :: Zn n -> Word256 #

From (Zn64 n) Word256 # 

Methods

from :: Zn64 n -> Word256 #

type Difference Word256 # 

(+) :: Word256 -> Word256 -> Word256 #

Add 2 Word256

(-) :: Word256 -> Word256 -> Word256 #

Subtract 2 Word256

(*) :: Word256 -> Word256 -> Word256 #

Multiplication

quot :: Word256 -> Word256 -> Word256 #

Division

rem :: Word256 -> Word256 -> Word256 #

Modulo

bitwiseAnd :: Word256 -> Word256 -> Word256 #

Bitwise and

bitwiseOr :: Word256 -> Word256 -> Word256 #

Bitwise or

bitwiseXor :: Word256 -> Word256 -> Word256 #

Bitwise xor