title: How to fix "variable not in scope" error in GHCI?
body: <p>I have programmed a really basic recursive function, but when I try to use it Haskell gives me an error.</p>
  <p>This is the code:</p>
  <pre><code>import Data.Char
  import Test.QuickCheck
  potencia :: Integer -&gt; Integer -&gt; Integer
  potencia x 0 = 1
  potencia x n = x*(potencia x (n-1))
  </code></pre>
  <p>And this is the error:</p>
  <pre><code>&lt;interactive&gt;:27:1-8: error:
      Variable not in scope: potencia :: Integer -&gt; Integer -&gt; t
  </code></pre>
  <p>If I delete the import of libreries it doesn´t give me the error anymore but I need them for later. I`m using the latest version of the Haskell platform.</p>