| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Unwitch.Convert.Word8
Contents
Description
Conversions from Word8.
Synopsis
- toWord16 :: Word8 -> Word16
- toWord32 :: Word8 -> Word32
- toWord64 :: Word8 -> Word64
- toWord :: Word8 -> Word
- toNatural :: Word8 -> Natural
- toInt8 :: Word8 -> Maybe Int8
- toInt16 :: Word8 -> Int16
- toInt32 :: Word8 -> Int32
- toInt64 :: Word8 -> Int64
- toInt :: Word8 -> Int
- toInteger :: Word8 -> Integer
- toFloat :: Word8 -> Float
- toDouble :: Word8 -> Double
- toCInt :: Word8 -> CInt
- toInt8# :: Word8 -> (# Int8 | (# #) #)
Conversions
Unboxed conversions
These use GHC unboxed types and unboxed sums for zero-allocation
failure handling. Requires the MagicHash, UnboxedSums and
UnboxedTuples language extensions.
See the GHC manual on unboxed types.