hextra-1.1.0.1: Generic and niche utility functions and more for Haskell.

Hextra.Integral

Synopsis

# Documentation

toIntegral :: forall i j. (Integral i, Integral j) => i -> j Source #

Converts any Integral to any other Integral.

(\+) :: forall i j. (Integral i, Integral j) => i -> i -> j Source #

(\-) :: forall i j. (Integral i, Integral j) => i -> i -> j Source #

(\*) :: forall i j. (Integral i, Integral j) => i -> i -> j Source #

genericQuot :: forall i j. (Integral i, Integral j) => i -> i -> j Source #

genericRem :: forall i j. (Integral i, Integral j) => i -> i -> j Source #

genericQuotRem :: forall i j. (Integral i, Integral j) => i -> i -> (j, j) Source #

genericDiv :: forall i j. (Integral i, Integral j) => i -> i -> j Source #

genericMod :: forall i j. (Integral i, Integral j) => i -> i -> j Source #

genericDivMod :: forall i j. (Integral i, Integral j) => i -> i -> (j, j) Source #

safeQuot :: forall a. Integral a => a -> a -> Maybe a Source #

safeRem :: forall a. Integral a => a -> a -> Maybe a Source #

safeQuotRem :: forall a. Integral a => a -> a -> Maybe (a, a) Source #

safeDiv :: forall a. Integral a => a -> a -> Maybe a Source #

safeMod :: forall a. Integral a => a -> a -> Maybe a Source #

safeDivMod :: forall a. Integral a => a -> a -> Maybe (a, a) Source #

genericSafeQuot :: forall i j. (Integral i, Integral j) => i -> i -> Maybe j Source #

genericSafeRem :: forall i j. (Integral i, Integral j) => i -> i -> Maybe j Source #

genericSafeQuotRem :: forall i j. (Integral i, Integral j) => i -> i -> Maybe (j, j) Source #

genericSafeDiv :: forall i j. (Integral i, Integral j) => i -> i -> Maybe j Source #

genericSafeMod :: forall i j. (Integral i, Integral j) => i -> i -> Maybe j Source #

genericSafeDivMod :: forall i j. (Integral i, Integral j) => i -> i -> Maybe (j, j) Source #