halfs-0.2: Haskell File SystemSource codeContentsIndex
Data.Integral
PortabilityGHC
Stabilityalpha
MaintainerIsaac Jones <ijones@galois.com>
Description
Cues Integralitis.
Synopsis
fromIntegral' :: (Bounded a, Integral a, Bounded b, Integral b) => a -> b
fromIntegral'' :: (Integral a, Bounded b, Integral b) => a -> b
type INInt = Int32
type INLong = Int64
inIntToInt :: INInt -> Int
intToINLong :: Int -> INLong
inIntToINLong :: INInt -> INLong
intToINInt :: Int -> INInt
Documentation
fromIntegral' :: (Bounded a, Integral a, Bounded b, Integral b) => a -> bSource
Almost like fromIntegral, but checks the bounds to make sure its definitely safe. Uses assert, so without assertions, check won't happen.
fromIntegral'' :: (Integral a, Bounded b, Integral b) => a -> bSource
A bit less safe than fromIntegral'; just runtime checks actual value you're trying to convert.
type INInt = Int32Source
type INLong = Int64Source
inIntToInt :: INInt -> IntSource
intToINLong :: Int -> INLongSource
inIntToINLong :: INInt -> INLongSource
intToINInt :: Int -> INIntSource
Produced by Haddock version 2.4.2