algebra-4.3.1: Constructive abstract algebra

Safe HaskellSafe
LanguageHaskell98

Numeric.Partial.Group

Documentation

class PartialMonoid a => PartialGroup a where #

Methods

pnegate :: a -> Maybe a #

pminus :: a -> a -> Maybe a #

psubtract :: a -> a -> Maybe a #

Instances

PartialGroup Int # 

Methods

pnegate :: Int -> Maybe Int #

pminus :: Int -> Int -> Maybe Int #

psubtract :: Int -> Int -> Maybe Int #

PartialGroup Int8 # 
PartialGroup Int16 # 
PartialGroup Int32 # 
PartialGroup Int64 # 
PartialGroup Integer # 
PartialGroup Natural # 
PartialGroup Word # 
PartialGroup Word8 # 
PartialGroup Word16 # 
PartialGroup Word32 # 
PartialGroup Word64 # 
PartialGroup () # 

Methods

pnegate :: () -> Maybe () #

pminus :: () -> () -> Maybe () #

psubtract :: () -> () -> Maybe () #

PartialGroup a => PartialGroup (Morphism a) # 
(PartialGroup a, PartialGroup b) => PartialGroup (a, b) # 

Methods

pnegate :: (a, b) -> Maybe (a, b) #

pminus :: (a, b) -> (a, b) -> Maybe (a, b) #

psubtract :: (a, b) -> (a, b) -> Maybe (a, b) #

(PartialGroup a, PartialGroup b, PartialGroup c) => PartialGroup (a, b, c) # 

Methods

pnegate :: (a, b, c) -> Maybe (a, b, c) #

pminus :: (a, b, c) -> (a, b, c) -> Maybe (a, b, c) #

psubtract :: (a, b, c) -> (a, b, c) -> Maybe (a, b, c) #

(PartialGroup a, PartialGroup b, PartialGroup c, PartialGroup d) => PartialGroup (a, b, c, d) # 

Methods

pnegate :: (a, b, c, d) -> Maybe (a, b, c, d) #

pminus :: (a, b, c, d) -> (a, b, c, d) -> Maybe (a, b, c, d) #

psubtract :: (a, b, c, d) -> (a, b, c, d) -> Maybe (a, b, c, d) #

(PartialGroup a, PartialGroup b, PartialGroup c, PartialGroup d, PartialGroup e) => PartialGroup (a, b, c, d, e) # 

Methods

pnegate :: (a, b, c, d, e) -> Maybe (a, b, c, d, e) #

pminus :: (a, b, c, d, e) -> (a, b, c, d, e) -> Maybe (a, b, c, d, e) #

psubtract :: (a, b, c, d, e) -> (a, b, c, d, e) -> Maybe (a, b, c, d, e) #