numeric-prelude-0.4.3: An experimental alternative hierarchy of numeric type classes
Algebra.Lattice
class C a where Source #
Minimal complete definition
up, dn
Methods
up, dn :: a -> a -> a infixl 5 `up`, `dn` Source #
Instances
up :: Bool -> Bool -> Bool Source #
dn :: Bool -> Bool -> Bool Source #
up :: Integer -> Integer -> Integer Source #
dn :: Integer -> Integer -> Integer Source #
up :: T a -> T a -> T a Source #
dn :: T a -> T a -> T a Source #
up :: (a, b) -> (a, b) -> (a, b) Source #
dn :: (a, b) -> (a, b) -> (a, b) Source #
max :: C a => a -> a -> a Source #
min :: C a => a -> a -> a Source #
abs :: (C a, C a) => a -> a Source #
propUpCommutative :: (Eq a, C a) => a -> a -> Bool Source #
propDnCommutative :: (Eq a, C a) => a -> a -> Bool Source #
propUpAssociative :: (Eq a, C a) => a -> a -> a -> Bool Source #
propDnAssociative :: (Eq a, C a) => a -> a -> a -> Bool Source #
propUpDnDistributive :: (Eq a, C a) => a -> a -> a -> Bool Source #
propDnUpDistributive :: (Eq a, C a) => a -> a -> a -> Bool Source #