I'm new to Haskell and I'm trying to get the length of a number in base 10 so I created length' function:
length' :: (Integral a) => a -> a
length' a = length $ show a
But Haskell gives me "Couldn't match type" error because length returns Int. I don't get why it gives me an error since Int an instance of Integral...