Haskell Couldn't match expected type ‘Double’ with actual type ‘Int’
<p>This is the  code of my program:</p>
<pre><code>funct :: Double -&gt; Double
funct x = 3/(x^2+1)

zetaRange :: (Int, Int) -&gt; [Double]
zetaRange (x,y) = [ 0.01 * funct n | n &lt;- [x..y] ]
</code></pre>
<p>and error, which I'm getting:</p>
<blockquote>
<p>Couldn't match expected type ‘Double’ with actual type ‘Int’</p>
<p>In the first argument of ‘funct’, namely ‘n’</p>
<p>In the second argument of ‘(*)’, namely ‘funct n’</p>
</blockquote>
<p>I really newbie to haskell, so trying to fix this error wasn't successful. funct is returning Double, so I can't understand why error says that it's actual type is Int. Please, help!</p>