The Integral class extends the Num class and supports two additional methods for working with integral numbers, integer division and integer remainder:
div, mod :: a -> a -> aghci> 5`div`31ghci> 5`mod`32
Basic types Int and Integer are instances of the Integral class.