Haskell is a strongly typed language. That means that no implicit conversions re done. You can first convert the two numbers to a Double, for example with fromIntegral :: (Integral a, Num b) => a -> b, and then use (/) :: Fractional a => a -> a -> a:
divide :: Integer -> Integer -> Double
divide x y = fromIntegral x / fromIntegral y
Convertin a number to a Double can result in loss of precision however.
It might be better to return a Ratio, and thus use fractions, for example with the (%) :: Integral i => i -> i -> Ratio i, so then divide is just divide = (%).
You can, like @DanielWagner says use fromRational to covert the Rational to any Fractional type:
import Data.Ratio((%))
divide :: Fractional a => Integer -> Integer -> a
divide x y = fromRational (x % y)
So then you can still convert it to a Double:
Prelude Data.Ratio> divide 5 2 :: Double
2.5
(/)have?fromIntegeris your friend.