integer-types-0.0.0.1: Integer, Natural, and Positive
Safe HaskellSafe-Inferred
LanguageGHC2021

Integer.Subtraction

Synopsis

Documentation

class Subtraction a where Source #

Domain of a subtraction operation

Minimal complete definition

Nothing

Methods

subtractInteger :: a -> a -> Integer Source #

subtractSigned :: a -> a -> Signed Source #

class Subtraction' b where Source #

Codomain of a subtraction operation

Methods

subtract :: Subtraction a => a -> a -> b Source #

Instances

Instances details
Subtraction' Signed Source # 
Instance details

Defined in Integer.Subtraction

Methods

subtract :: Subtraction a => a -> a -> Signed Source #

Subtraction' Integer Source # 
Instance details

Defined in Integer.Subtraction

Methods

subtract :: Subtraction a => a -> a -> Integer Source #