divide the even number in the list
<p>I was trying to half the even numbers in the list </p>

<pre><code>halfEvens :: [Int] -&gt; [Int]
halfEvens xs = [x `div` 2 | x -&gt; xs, even x]
</code></pre>

<p>the error is 
       <strong>error: parse error on input ‘->’</strong></p>

<p>what does this mean and how to fix it? 
thanks </p>