No instance for (Floating Integer) arising from a use of '**'?
<p>I have the following Haskell code:</p>

<pre><code>two :: Integer -&gt; Integer
two i = toInteger(2 ** i)
</code></pre>

<p>Why isn't it working?</p>