module Antelude.Numeric
( P.Double
, P.Float
, P.Floating (..)
, P.Fractional (..)
, P.Int
, P.Integer
, P.Integral (..)
, P.Num (..)
, P.Rational
, P.fromIntegral
, P.gcd
, P.lcm
, P.realToFrac
, P.subtract
, greatestCommonDenominator
, isEven
, isOdd
, leastCommonMultiple
) where
import safe Antelude.Internal.TypesClasses ( Bool, Integral )
import safe qualified Prelude as P
( Double
, Float
, Floating (..)
, Fractional (..)
, Int
, Integer
, Integral (..)
, Num (..)
, Rational
, even
, fromIntegral
, gcd
, lcm
, odd
, realToFrac
, subtract
)
isEven :: (Integral a) => a -> Bool
isEven :: forall a. Integral a => a -> Bool
isEven = a -> Bool
forall a. Integral a => a -> Bool
P.even
isOdd :: (Integral a) => a -> Bool
isOdd :: forall a. Integral a => a -> Bool
isOdd = a -> Bool
forall a. Integral a => a -> Bool
P.odd
greatestCommonDenominator :: (Integral a) => a -> a -> a
greatestCommonDenominator :: forall a. Integral a => a -> a -> a
greatestCommonDenominator = a -> a -> a
forall a. Integral a => a -> a -> a
P.gcd
leastCommonMultiple :: (Integral a) => a -> a -> a
leastCommonMultiple :: forall a. Integral a => a -> a -> a
leastCommonMultiple = a -> a -> a
forall a. Integral a => a -> a -> a
P.lcm