algebra-4.3.1: Constructive abstract algebra

Safe HaskellSafe
LanguageHaskell98

Numeric.Ring.Class

Documentation

class (Rig r, Rng r) => Ring r where Source #

Methods

fromInteger :: Integer -> r Source #

Instances

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

Methods

fromInteger :: Integer -> () Source #

Ring Euclidean Source # 
Rng r => Ring (RngRing r) Source # 
Ring r => Ring (Opposite r) Source # 
(Abelian r, Group r) => Ring (End r) Source # 

Methods

fromInteger :: Integer -> End r Source #

(Commutative r, Ring r) => Ring (Trig r) Source # 
(TriviallyInvolutive r, Ring r) => Ring (Quaternion' r) Source # 
(Commutative r, Ring r) => Ring (Hyper r) Source # 
(Commutative r, Ring r) => Ring (Dual' r) Source # 
(TriviallyInvolutive r, Ring r) => Ring (Quaternion r) Source # 
(Commutative r, Ring r) => Ring (Hyper' r) Source # 
(Commutative r, Ring r) => Ring (Dual r) Source # 
(Commutative r, Ring r) => Ring (Complex r) Source # 
GCDDomain d => Ring (Fraction d) Source # 
(Ring a, Ring b) => Ring (a, b) Source # 

Methods

fromInteger :: Integer -> (a, b) Source #

(Ring r, CounitalCoalgebra r m) => Ring (Covector r m) Source # 
(Ring a, Ring b, Ring c) => Ring (a, b, c) Source # 

Methods

fromInteger :: Integer -> (a, b, c) Source #

(Ring r, CounitalCoalgebra r m) => Ring (Map r a m) Source # 

Methods

fromInteger :: Integer -> Map r a m Source #

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

Methods

fromInteger :: Integer -> (a, b, c, d) Source #

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

Methods

fromInteger :: Integer -> (a, b, c, d, e) Source #

fromIntegral :: (Integral n, Ring r) => n -> r Source #