rings-0.0.2.1: Rings, semirings, and dioids.
Data.Ring
(<<) :: Group a => a -> a -> a infixl 6 Source #
(><) :: Semiring r => r -> r -> r infixr 7 Source #
(<>) :: Semigroup a => a -> a -> a infixr 6 #
An associative operation.
negate :: Group a => a -> a Source #
class (Group a, Semiring a) => Ring a where Source #
Methods
abs :: a -> a Source #
signum :: a -> a Source #
Defined in Data.Int.Instance
abs :: Int -> Int Source #
signum :: Int -> Int Source #
abs :: Int8 -> Int8 Source #
signum :: Int8 -> Int8 Source #
abs :: Int16 -> Int16 Source #
signum :: Int16 -> Int16 Source #
abs :: Int32 -> Int32 Source #
signum :: Int32 -> Int32 Source #
abs :: Int64 -> Int64 Source #
signum :: Int64 -> Int64 Source #
abs :: Integer -> Integer Source #
signum :: Integer -> Integer Source #
Defined in Data.Fixed.Instance
abs :: Uni -> Uni Source #
signum :: Uni -> Uni Source #
abs :: Deci -> Deci Source #
signum :: Deci -> Deci Source #
abs :: Centi -> Centi Source #
signum :: Centi -> Centi Source #
abs :: Milli -> Milli Source #
signum :: Milli -> Milli Source #
abs :: Micro -> Micro Source #
signum :: Micro -> Micro Source #
abs :: Nano -> Nano Source #
signum :: Nano -> Nano Source #
abs :: Pico -> Pico Source #
signum :: Pico -> Pico Source #