Question : Haskell power
Answered by : dominik
-- typically for integers
(^) :: (Num a, Integral b) => a -> b -> a
-- typically for rationals
(^^) :: (Fractional a, Integral b) => a -> b -> a
-- typically for floating-point numbers
(**) :: Floating a => a -> a -> a
Source : https://wiki.haskell.org/Power_function | Last Update : Fri, 26 Jun 20