algebra-4.3.1: Constructive abstract algebra

Safe HaskellSafe
LanguageHaskell98

Numeric.Partial.Group

Documentation

class PartialMonoid a => PartialGroup a where Source #

Methods

pnegate :: a -> Maybe a Source #

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

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

Instances

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

Methods

pnegate :: () -> Maybe () Source #

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

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

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

Methods

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

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

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

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

Methods

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

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

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

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

Methods

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

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

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

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

Methods

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

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

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