Type error while deviding in Haskell : <p>I am trying to write a function in Haskell to devide to Integers. Here is my Code:</p>

<pre><code>div :: Int -&gt; Int -&gt; Double
div a b =a/b
</code></pre>

<p>However, when I try to complie it i always get the error:</p>

<pre><code>baby.hs:20:10:
  Couldn't match expected type ‘Double’ with actual type ‘Int’
  In the first argument of ‘(/)’, namely ‘a’
  In the expression: a / b

baby.hs:20:12:
  Couldn't match expected type ‘Double’ with actual type ‘Int’
  In the second argument of ‘(/)’, namely ‘b’
  In the expression: a / b
Failed, modules loaded: none.
</code></pre>
