basement-0.0.7: Foundation scrap box of array & string

Safe HaskellNone
LanguageHaskell2010

Basement.Numerical.Number

Synopsis

Documentation

class (Enum a, Eq a, Ord a, Integral a) => IsIntegral a where Source #

Number literals, convertible through the generic Integer type.

all number are Enum'erable, meaning that you can move to next element

Minimal complete definition

toInteger

Methods

toInteger :: a -> Integer Source #

Instances

IsIntegral Int Source # 
IsIntegral Int8 Source # 
IsIntegral Int16 Source # 
IsIntegral Int32 Source # 
IsIntegral Int64 Source # 
IsIntegral Integer Source # 
IsIntegral Natural Source # 
IsIntegral Word Source # 
IsIntegral Word8 Source # 
IsIntegral Word16 Source # 
IsIntegral Word32 Source # 
IsIntegral Word64 Source # 
IsIntegral CChar Source # 
IsIntegral CSChar Source # 
IsIntegral CUChar Source # 
IsIntegral CShort Source # 
IsIntegral CUShort Source # 
IsIntegral CInt Source # 
IsIntegral CUInt Source # 
IsIntegral CLong Source # 
IsIntegral CULong Source # 
IsIntegral CLLong Source # 
IsIntegral CULLong Source # 
IsIntegral CBool Source # 
IsIntegral CPtrdiff Source # 
IsIntegral CSize Source # 
IsIntegral CWchar Source # 
IsIntegral CSigAtomic Source # 
IsIntegral CIntPtr Source # 
IsIntegral CUIntPtr Source # 
IsIntegral CIntMax Source # 
IsIntegral CUIntMax Source # 
IsIntegral Word128 Source # 
IsIntegral Word256 Source # 
IsIntegral (CountOf ty) Source # 

Methods

toInteger :: CountOf ty -> Integer Source #

IsIntegral (Offset ty) Source # 

Methods

toInteger :: Offset ty -> Integer Source #

class (Enum a, Eq a, Ord a, Integral a, IsIntegral a) => IsNatural a where Source #

Non Negative Number literals, convertible through the generic Natural type

Minimal complete definition

toNatural

Methods

toNatural :: a -> Natural Source #