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