Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell98 |
Type synonyms and type classes for use in function and instance declarations.
- type Array2 a = (a, a)
- type Array4 a = (a, a, a, a)
- class LimitedInteger a where
- liFromInteger :: Integer -> a
- liToInteger :: a -> Integer
- liBitSize :: a -> Int
- class LimitedInteger a => Counter a where
- class Word32Array a where
- getWord32 :: Int -> a -> Word32
- numWords32 :: a -> Int
- class Word64Array a where
- getWord64 :: Int -> a -> Word64
- numWords64 :: a -> Int
Documentation
class LimitedInteger a where Source
Class of integers with more bits than in simple types yet having fixed limited size
(unlike the built-in Integer
).
liFromInteger :: Integer -> a Source
liToInteger :: a -> Integer Source
Returns the size of the information in the array.
class LimitedInteger a => Counter a where Source
Class of CBRNG counters.
Nothing
class Word32Array a where Source
Class of objects allowing the extraction of 32-bit words from the given position.
getWord32 :: Int -> a -> Word32 Source
Returns a Word32
from a position in range [0,
.numWords32
- 1)
numWords32 :: a -> Int Source
Number of 32-bit words in this array.
class Word64Array a where Source
Class of objects allowing the extraction of 64-bit words from a given position.
getWord64 :: Int -> a -> Word64 Source
Returns a Word64
from a position in range [0,
.numWords64
- 1)
numWords64 :: a -> Int Source
Number of 64-bit words in this array.