Safe Haskell | None |
---|---|
Language | Haskell2010 |
- class IntegralDownsize a b where
- class IntegralUpsize a b where
- class IntegralCast a b where
- intToInt64 :: Int -> Int64
- int64ToInt :: Int64 -> Int
- wordToWord64 :: Word -> Word64
- word64ToWord32s :: Word64 -> Word32x2
- data Word32x2 = Word32x2 !Word32 !Word32
- word64ToWord :: Word64 -> Word
- wordToChar :: Word -> Char
- wordToInt :: Word -> Int
- charToInt :: Char -> Int
Documentation
class IntegralDownsize a b where #
Downsize an integral value
integralDownsize :: a -> b #
integralDownsize :: a ~ b => a -> b #
integralDownsizeCheck :: a -> Maybe b #
class IntegralUpsize a b where #
Upsize an integral value
The destination type b
size need to be greater or equal
than the size type of a
integralUpsize :: a -> b #
class IntegralCast a b where #
Cast an integral value to another value that have the same representional size
integralCast :: a -> b #
integralCast :: a ~ b => a -> b #
intToInt64 :: Int -> Int64 #
int64ToInt :: Int64 -> Int #
wordToWord64 :: Word -> Word64 #
word64ToWord32s :: Word64 -> Word32x2 #
word64ToWord :: Word64 -> Word #
wordToChar :: Word -> Char #