Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- class IntegralDownsize a b where
- integralDownsize :: a -> b
- integralDownsizeCheck :: a -> Maybe b
- class IntegralUpsize a b where
- integralUpsize :: a -> b
- 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 #
default integralDownsize :: a ~ b => a -> b #
integralDownsizeCheck :: a -> Maybe b #
Instances
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 #
Instances
intToInt64 :: Int -> Int64 #
int64ToInt :: Int64 -> Int #
wordToWord64 :: Word -> Word64 #
word64ToWord32s :: Word64 -> Word32x2 #
word64ToWord :: Word64 -> Word #
wordToChar :: Word -> Char #