title: Merging lists with unique elements
body: <p>I am trying to combine two lists and remove duplicates.Following is my code but i think i have syntax error and also can anyone suggest a better method to implement this as i am sure there is a better way.</p>
  
  <p>MY CODE</p>
  
  <pre><code>combine :: [Int] -&gt; [Int] -&gt; [Int]
  
  combine (x:xs++y:ys)
           |elem x xs || elem x ys = combine xs ++ ys
           |elem y xs || elem y ys = combine xs ++ ys
           |otherwise x:y:combine xs ys
  </code></pre>
  
  <p>I know what the problem wants me to do and  i know how to solve it but i am not able to get over the syntax. Any help would be appreciated</p>