title: Variable not in scope in Haskell. What does this mean?
body: <pre><code>filter :: (a -&gt; Bool) -&gt; [a] -&gt; [a]
  filter =  (\x -&gt; x % 2 == 0) [1,2,3,4,5]
  </code></pre>
  <p>using the code below in Haskell when run I get an error :
  'Variable not in scope:
  (%) :: [Integer] -&gt; Bool -&gt; (a -&gt; Bool) -&gt; [a] -&gt; [a]'</p>
  <p>What does this mean ?</p>
  <p>Im trying to create a function that takes list and returns the even numbers. Being so new to haskell this is all I've managed but I still get an error. I have googled butI cannot find a solution</p>