This code:
division :: Double -> Int -> Double
division x k = x / k
gives me:
Prelude> :l main
[1 of 1] Compiling Main ( main.hs, interpreted )
main.hs:2:20: error:
• Couldn't match expected type ‘Double’ with actual type ‘Int’
• In the second argument of ‘(/)’, namely ‘k’
In the expression: x / k
In an equation for ‘division’: division x k = x / k
I'm new to haskell, so could you please explain what the issue here is?