basement-0.0.15: Foundation scrap box of array & string
Safe Haskell None
Language Haskell2010

Basement.Numerical.Subtractive

Synopsis

Documentation

class Subtractive a where Source #

Represent class of things that can be subtracted.

Note that the result is not necessary of the same type as the operand depending on the actual type.

For example:

(-) :: Int -> Int -> Int
(-) :: DateTime -> DateTime -> Seconds
(-) :: Ptr a -> Ptr a -> PtrDiff
(-) :: Natural -> Natural -> Maybe Natural

Associated Types

type Difference a Source #

Methods

(-) :: a -> a -> Difference a infixl 6 Source #

Instances

Instances details
Subtractive Char Source #
Instance details

Defined in Basement.Numerical.Subtractive

Subtractive Double Source #
Instance details

Defined in Basement.Numerical.Subtractive

Subtractive Float Source #
Instance details

Defined in Basement.Numerical.Subtractive

Subtractive Int Source #
Instance details

Defined in Basement.Numerical.Subtractive

Associated Types

type Difference Int Source #

Subtractive Int8 Source #
Instance details

Defined in Basement.Numerical.Subtractive

Subtractive Int16 Source #
Instance details

Defined in Basement.Numerical.Subtractive

Subtractive Int32 Source #
Instance details

Defined in Basement.Numerical.Subtractive

Subtractive Int64 Source #
Instance details

Defined in Basement.Numerical.Subtractive

Subtractive Integer Source #
Instance details

Defined in Basement.Numerical.Subtractive

Subtractive Natural Source #
Instance details

Defined in Basement.Numerical.Subtractive

Subtractive Word Source #
Instance details

Defined in Basement.Numerical.Subtractive

Subtractive Word8 Source #
Instance details

Defined in Basement.Numerical.Subtractive

Subtractive Word16 Source #
Instance details

Defined in Basement.Numerical.Subtractive

Subtractive Word32 Source #
Instance details

Defined in Basement.Numerical.Subtractive

Subtractive Word64 Source #
Instance details

Defined in Basement.Numerical.Subtractive

Subtractive COff Source #
Instance details

Defined in Basement.Numerical.Subtractive

Subtractive CChar Source #
Instance details

Defined in Basement.Numerical.Subtractive

Subtractive CSChar Source #
Instance details

Defined in Basement.Numerical.Subtractive

Subtractive CUChar Source #
Instance details

Defined in Basement.Numerical.Subtractive

Subtractive CShort Source #
Instance details

Defined in Basement.Numerical.Subtractive

Subtractive CUShort Source #
Instance details

Defined in Basement.Numerical.Subtractive

Subtractive CInt Source #
Instance details

Defined in Basement.Numerical.Subtractive

Subtractive CUInt Source #
Instance details

Defined in Basement.Numerical.Subtractive

Subtractive CLong Source #
Instance details

Defined in Basement.Numerical.Subtractive

Subtractive CULong Source #
Instance details

Defined in Basement.Numerical.Subtractive

Subtractive CLLong Source #
Instance details

Defined in Basement.Numerical.Subtractive

Subtractive CULLong Source #
Instance details

Defined in Basement.Numerical.Subtractive

Subtractive CBool Source #
Instance details

Defined in Basement.Numerical.Subtractive

Subtractive CFloat Source #
Instance details

Defined in Basement.Numerical.Subtractive

Subtractive CDouble Source #
Instance details

Defined in Basement.Numerical.Subtractive

Subtractive CPtrdiff Source #
Instance details

Defined in Basement.Numerical.Subtractive

Subtractive CSize Source #
Instance details

Defined in Basement.Numerical.Subtractive

Subtractive CWchar Source #
Instance details

Defined in Basement.Numerical.Subtractive

Subtractive CSigAtomic Source #
Instance details

Defined in Basement.Numerical.Subtractive

Subtractive CClock Source #
Instance details

Defined in Basement.Numerical.Subtractive

Subtractive CTime Source #
Instance details

Defined in Basement.Numerical.Subtractive

Subtractive CUSeconds Source #
Instance details

Defined in Basement.Numerical.Subtractive

Subtractive CSUSeconds Source #
Instance details

Defined in Basement.Numerical.Subtractive

Subtractive CIntPtr Source #
Instance details

Defined in Basement.Numerical.Subtractive

Subtractive CUIntPtr Source #
Instance details

Defined in Basement.Numerical.Subtractive

Subtractive CIntMax Source #
Instance details

Defined in Basement.Numerical.Subtractive

Subtractive CUIntMax Source #
Instance details

Defined in Basement.Numerical.Subtractive

Subtractive Word128 Source #
Instance details

Defined in Basement.Numerical.Subtractive

Subtractive Word256 Source #
Instance details

Defined in Basement.Numerical.Subtractive

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

Defined in Basement.Numerical.Subtractive

Associated Types

type Difference ( Zn n) Source #

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

Defined in Basement.Numerical.Subtractive

Associated Types

type Difference ( Zn64 n) Source #

Subtractive ( CountOf ty) Source #
Instance details

Defined in Basement.Types.OffsetSize

Associated Types

type Difference ( CountOf ty) Source #

Subtractive ( Offset ty) Source #
Instance details

Defined in Basement.Types.OffsetSize

Associated Types

type Difference ( Offset ty) Source #

SizeValid n => Subtractive ( Bits n) Source #
Instance details

Defined in Basement.Bits

Associated Types

type Difference ( Bits n) Source #