basement-0.0.11: Foundation scrap box of array & string

LicenseBSD-style
MaintainerFoundation
Safe HaskellNone
LanguageHaskell2010

Basement.Compat.NumLiteral

Description

Literal support for Integral and Fractional

Synopsis

Documentation

class Integral a where Source #

Integral Literal support

e.g. 123 :: Integer 123 :: Word8

Methods

fromInteger :: Integer -> a Source #

Instances
Integral Double Source # 
Instance details

Defined in Basement.Compat.NumLiteral

Integral Float Source # 
Instance details

Defined in Basement.Compat.NumLiteral

Integral Int Source # 
Instance details

Defined in Basement.Compat.NumLiteral

Integral Int8 Source # 
Instance details

Defined in Basement.Compat.NumLiteral

Integral Int16 Source # 
Instance details

Defined in Basement.Compat.NumLiteral

Integral Int32 Source # 
Instance details

Defined in Basement.Compat.NumLiteral

Integral Int64 Source # 
Instance details

Defined in Basement.Compat.NumLiteral

Integral Integer Source # 
Instance details

Defined in Basement.Compat.NumLiteral

Integral Natural Source # 
Instance details

Defined in Basement.Compat.NumLiteral

Integral Word Source # 
Instance details

Defined in Basement.Compat.NumLiteral

Integral Word8 Source # 
Instance details

Defined in Basement.Compat.NumLiteral

Integral Word16 Source # 
Instance details

Defined in Basement.Compat.NumLiteral

Integral Word32 Source # 
Instance details

Defined in Basement.Compat.NumLiteral

Integral Word64 Source # 
Instance details

Defined in Basement.Compat.NumLiteral

Integral COff Source # 
Instance details

Defined in Basement.Compat.NumLiteral

Integral CChar Source # 
Instance details

Defined in Basement.Compat.NumLiteral

Integral CSChar Source # 
Instance details

Defined in Basement.Compat.NumLiteral

Integral CUChar Source # 
Instance details

Defined in Basement.Compat.NumLiteral

Integral CShort Source # 
Instance details

Defined in Basement.Compat.NumLiteral

Integral CUShort Source # 
Instance details

Defined in Basement.Compat.NumLiteral

Integral CInt Source # 
Instance details

Defined in Basement.Compat.NumLiteral

Integral CUInt Source # 
Instance details

Defined in Basement.Compat.NumLiteral

Integral CLong Source # 
Instance details

Defined in Basement.Compat.NumLiteral

Integral CULong Source # 
Instance details

Defined in Basement.Compat.NumLiteral

Integral CLLong Source # 
Instance details

Defined in Basement.Compat.NumLiteral

Integral CULLong Source # 
Instance details

Defined in Basement.Compat.NumLiteral

Integral CBool Source # 
Instance details

Defined in Basement.Compat.NumLiteral

Integral CFloat Source # 
Instance details

Defined in Basement.Compat.NumLiteral

Integral CDouble Source # 
Instance details

Defined in Basement.Compat.NumLiteral

Integral CPtrdiff Source # 
Instance details

Defined in Basement.Compat.NumLiteral

Integral CSize Source # 
Instance details

Defined in Basement.Compat.NumLiteral

Integral CWchar Source # 
Instance details

Defined in Basement.Compat.NumLiteral

Integral CSigAtomic Source # 
Instance details

Defined in Basement.Compat.NumLiteral

Integral CClock Source # 
Instance details

Defined in Basement.Compat.NumLiteral

Integral CTime Source # 
Instance details

Defined in Basement.Compat.NumLiteral

Integral CUSeconds Source # 
Instance details

Defined in Basement.Compat.NumLiteral

Integral CSUSeconds Source # 
Instance details

Defined in Basement.Compat.NumLiteral

Integral CIntPtr Source # 
Instance details

Defined in Basement.Compat.NumLiteral

Integral CUIntPtr Source # 
Instance details

Defined in Basement.Compat.NumLiteral

Integral CIntMax Source # 
Instance details

Defined in Basement.Compat.NumLiteral

Integral CUIntMax Source # 
Instance details

Defined in Basement.Compat.NumLiteral

Integral IntPtr Source # 
Instance details

Defined in Basement.Compat.NumLiteral

Integral Word128 Source # 
Instance details

Defined in Basement.Types.Word128

Integral Word256 Source # 
Instance details

Defined in Basement.Types.Word256

KnownNat n => Integral (Zn n) Source # 
Instance details

Defined in Basement.Bounded

Methods

fromInteger :: Integer -> Zn n Source #

(KnownNat n, NatWithinBound Word64 n) => Integral (Zn64 n) Source # 
Instance details

Defined in Basement.Bounded

Integral (CountOf ty) Source # 
Instance details

Defined in Basement.Types.OffsetSize

Integral (Offset ty) Source # 
Instance details

Defined in Basement.Types.OffsetSize

class Fractional a where Source #

Fractional Literal support

e.g. 1.2 :: Double 0.03 :: Float

Methods

fromRational :: Rational -> a Source #

class HasNegation a where Source #

Negation support

e.g. -(f x)

Methods

negate :: a -> a Source #

Instances
HasNegation Double Source # 
Instance details

Defined in Basement.Compat.NumLiteral

Methods

negate :: Double -> Double Source #

HasNegation Float Source # 
Instance details

Defined in Basement.Compat.NumLiteral

Methods

negate :: Float -> Float Source #

HasNegation Int Source # 
Instance details

Defined in Basement.Compat.NumLiteral

Methods

negate :: Int -> Int Source #

HasNegation Int8 Source # 
Instance details

Defined in Basement.Compat.NumLiteral

Methods

negate :: Int8 -> Int8 Source #

HasNegation Int16 Source # 
Instance details

Defined in Basement.Compat.NumLiteral

Methods

negate :: Int16 -> Int16 Source #

HasNegation Int32 Source # 
Instance details

Defined in Basement.Compat.NumLiteral

Methods

negate :: Int32 -> Int32 Source #

HasNegation Int64 Source # 
Instance details

Defined in Basement.Compat.NumLiteral

Methods

negate :: Int64 -> Int64 Source #

HasNegation Integer Source # 
Instance details

Defined in Basement.Compat.NumLiteral

HasNegation Word Source # 
Instance details

Defined in Basement.Compat.NumLiteral

Methods

negate :: Word -> Word Source #

HasNegation Word8 Source # 
Instance details

Defined in Basement.Compat.NumLiteral

Methods

negate :: Word8 -> Word8 Source #

HasNegation Word16 Source # 
Instance details

Defined in Basement.Compat.NumLiteral

Methods

negate :: Word16 -> Word16 Source #

HasNegation Word32 Source # 
Instance details

Defined in Basement.Compat.NumLiteral

Methods

negate :: Word32 -> Word32 Source #

HasNegation Word64 Source # 
Instance details

Defined in Basement.Compat.NumLiteral

Methods

negate :: Word64 -> Word64 Source #

HasNegation CChar Source # 
Instance details

Defined in Basement.Compat.NumLiteral

Methods

negate :: CChar -> CChar Source #

HasNegation CSChar Source # 
Instance details

Defined in Basement.Compat.NumLiteral

Methods

negate :: CSChar -> CSChar Source #

HasNegation CShort Source # 
Instance details

Defined in Basement.Compat.NumLiteral

Methods

negate :: CShort -> CShort Source #

HasNegation CInt Source # 
Instance details

Defined in Basement.Compat.NumLiteral

Methods

negate :: CInt -> CInt Source #

HasNegation CLong Source # 
Instance details

Defined in Basement.Compat.NumLiteral

Methods

negate :: CLong -> CLong Source #

HasNegation CLLong Source # 
Instance details

Defined in Basement.Compat.NumLiteral

Methods

negate :: CLLong -> CLLong Source #

HasNegation CFloat Source # 
Instance details

Defined in Basement.Compat.NumLiteral

Methods

negate :: CFloat -> CFloat Source #

HasNegation CDouble Source # 
Instance details

Defined in Basement.Compat.NumLiteral

HasNegation CPtrdiff Source # 
Instance details

Defined in Basement.Compat.NumLiteral

HasNegation CWchar Source # 
Instance details

Defined in Basement.Compat.NumLiteral

Methods

negate :: CWchar -> CWchar Source #

HasNegation CIntMax Source # 
Instance details

Defined in Basement.Compat.NumLiteral

HasNegation Word128 Source # 
Instance details

Defined in Basement.Types.Word128

HasNegation Word256 Source # 
Instance details

Defined in Basement.Types.Word256