I don't know of any built in pow function in Haskell
Why don't you count ^
as a pow function?
powthing :: Int -> Int
Unless you have a good reason to prefer Int
over Integer
(like you know for a fact that your use of Integer
is causing performance problems in your code and that all your values fit into the Int
range), I'd recommend either using Integer
or keeping the function polymorphic.