basement-0.0.10: Foundation scrap box of array & string

Safe HaskellNone
LanguageHaskell2010

Basement.IntegralConv

Synopsis

Documentation

class IntegralDownsize a b where Source #

Downsize an integral value

Minimal complete definition

integralDownsizeCheck

Methods

integralDownsize :: a -> b Source #

integralDownsize :: a ~ b => a -> b Source #

integralDownsizeCheck :: a -> Maybe b Source #

Instances
IntegralDownsize Int Int8 Source # 
Instance details

Defined in Basement.IntegralConv

IntegralDownsize Int Int16 Source # 
Instance details

Defined in Basement.IntegralConv

IntegralDownsize Int Int32 Source # 
Instance details

Defined in Basement.IntegralConv

IntegralDownsize Int64 Int Source # 
Instance details

Defined in Basement.IntegralConv

IntegralDownsize Int64 Int8 Source # 
Instance details

Defined in Basement.IntegralConv

IntegralDownsize Int64 Int16 Source # 
Instance details

Defined in Basement.IntegralConv

IntegralDownsize Int64 Int32 Source # 
Instance details

Defined in Basement.IntegralConv

IntegralDownsize Integer Int8 Source # 
Instance details

Defined in Basement.IntegralConv

IntegralDownsize Integer Int16 Source # 
Instance details

Defined in Basement.IntegralConv

IntegralDownsize Integer Int32 Source # 
Instance details

Defined in Basement.IntegralConv

IntegralDownsize Integer Int64 Source # 
Instance details

Defined in Basement.IntegralConv

IntegralDownsize Integer Natural Source # 
Instance details

Defined in Basement.IntegralConv

IntegralDownsize Integer Word8 Source # 
Instance details

Defined in Basement.IntegralConv

IntegralDownsize Integer Word16 Source # 
Instance details

Defined in Basement.IntegralConv

IntegralDownsize Integer Word32 Source # 
Instance details

Defined in Basement.IntegralConv

IntegralDownsize Integer Word64 Source # 
Instance details

Defined in Basement.IntegralConv

IntegralDownsize Natural Word8 Source # 
Instance details

Defined in Basement.IntegralConv

IntegralDownsize Natural Word16 Source # 
Instance details

Defined in Basement.IntegralConv

IntegralDownsize Natural Word32 Source # 
Instance details

Defined in Basement.IntegralConv

IntegralDownsize Natural Word64 Source # 
Instance details

Defined in Basement.IntegralConv

IntegralDownsize Word Word8 Source # 
Instance details

Defined in Basement.IntegralConv

IntegralDownsize Word Word16 Source # 
Instance details

Defined in Basement.IntegralConv

IntegralDownsize Word Word32 Source # 
Instance details

Defined in Basement.IntegralConv

IntegralDownsize Word16 Word8 Source # 
Instance details

Defined in Basement.IntegralConv

IntegralDownsize Word32 Word8 Source # 
Instance details

Defined in Basement.IntegralConv

IntegralDownsize Word32 Word16 Source # 
Instance details

Defined in Basement.IntegralConv

IntegralDownsize Word64 Word8 Source # 
Instance details

Defined in Basement.IntegralConv

IntegralDownsize Word64 Word16 Source # 
Instance details

Defined in Basement.IntegralConv

IntegralDownsize Word64 Word32 Source # 
Instance details

Defined in Basement.IntegralConv

class IntegralUpsize a b where Source #

Upsize an integral value

The destination type b size need to be greater or equal than the size type of a

Methods

integralUpsize :: a -> b Source #

Instances
IntegralUpsize Int Int64 Source # 
Instance details

Defined in Basement.IntegralConv

IntegralUpsize Int8 Int Source # 
Instance details

Defined in Basement.IntegralConv

IntegralUpsize Int8 Int16 Source # 
Instance details

Defined in Basement.IntegralConv

IntegralUpsize Int8 Int32 Source # 
Instance details

Defined in Basement.IntegralConv

IntegralUpsize Int8 Int64 Source # 
Instance details

Defined in Basement.IntegralConv

IntegralUpsize Int16 Int Source # 
Instance details

Defined in Basement.IntegralConv

IntegralUpsize Int16 Int32 Source # 
Instance details

Defined in Basement.IntegralConv

IntegralUpsize Int16 Int64 Source # 
Instance details

Defined in Basement.IntegralConv

IntegralUpsize Int32 Int Source # 
Instance details

Defined in Basement.IntegralConv

IntegralUpsize Int32 Int64 Source # 
Instance details

Defined in Basement.IntegralConv

IntegralUpsize Word Word64 Source # 
Instance details

Defined in Basement.IntegralConv

IntegralUpsize Word8 Int Source # 
Instance details

Defined in Basement.IntegralConv

IntegralUpsize Word8 Int16 Source # 
Instance details

Defined in Basement.IntegralConv

IntegralUpsize Word8 Int32 Source # 
Instance details

Defined in Basement.IntegralConv

IntegralUpsize Word8 Int64 Source # 
Instance details

Defined in Basement.IntegralConv

IntegralUpsize Word8 Word Source # 
Instance details

Defined in Basement.IntegralConv

IntegralUpsize Word8 Word16 Source # 
Instance details

Defined in Basement.IntegralConv

IntegralUpsize Word8 Word32 Source # 
Instance details

Defined in Basement.IntegralConv

IntegralUpsize Word8 Word64 Source # 
Instance details

Defined in Basement.IntegralConv

IntegralUpsize Word16 Word Source # 
Instance details

Defined in Basement.IntegralConv

IntegralUpsize Word16 Word32 Source # 
Instance details

Defined in Basement.IntegralConv

IntegralUpsize Word16 Word64 Source # 
Instance details

Defined in Basement.IntegralConv

IntegralUpsize Word32 Word Source # 
Instance details

Defined in Basement.IntegralConv

IntegralUpsize Word32 Word64 Source # 
Instance details

Defined in Basement.IntegralConv

IsNatural a => IntegralUpsize a Natural Source # 
Instance details

Defined in Basement.IntegralConv

IsIntegral a => IntegralUpsize a Integer Source # 
Instance details

Defined in Basement.IntegralConv

data Word32x2 Source #

2 Word32s

Constructors

Word32x2 !Word32 !Word32