| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Unwitch.Convert.Word16
Contents
Description
Conversions from Word16.
Synopsis
- toWord8 :: Word16 -> Maybe Word8
- toWord32 :: Word16 -> Word32
- toWord64 :: Word16 -> Word64
- toWord :: Word16 -> Word
- toNatural :: Word16 -> Natural
- toInt8 :: Word16 -> Maybe Int8
- toInt16 :: Word16 -> Maybe Int16
- toInt32 :: Word16 -> Int32
- toInt64 :: Word16 -> Int64
- toInt :: Word16 -> Int
- toInteger :: Word16 -> Integer
- toFloat :: Word16 -> Float
- toDouble :: Word16 -> Double
- toCInt :: Word16 -> CInt
- toWord8# :: Word16 -> (# Word8 | (# #) #)
- toInt8# :: Word16 -> (# Int8 | (# #) #)
- toInt16# :: Word16 -> (# Int16 | (# #) #)
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.