precursor-0.1.0.0: Prelude replacement

Safe HaskellSafe
LanguageHaskell2010

Precursor.Numeric.Integral

Synopsis

Documentation

class Semiring a => Integral a where Source #

An integral domain. Members of this class must be Semirings with commutative *.

Minimal complete definition

divMod | (//), (%)

Methods

divMod :: a -> a -> (a, a) Source #

The divisor and modulo

(//) :: a -> a -> a infixl 7 Source #

Integer division

(%) :: a -> a -> a infixl 7 Source #

Modulo

even :: Integral a => a -> Bool #

odd :: Integral a => a -> Bool #