title: Haskell Partition with sets- parse error?
body: <p>The partition has to be of the form:
  partition :: (a -> Bool) -> Set a -> (Set a, Set a)</p>
  
  <p>my code: </p>
  
  <pre><code>partition pred [] = []
  partition pred (front : rest)
        = partition pred rest, if pred front
        = (front : rest), otherwise
  </code></pre>
  
  <p>however i get a error: 
  error: parse error on input `,'
      |
  192 |       = partition pred rest, if pred front</p>
  
  <p>anyone can tell me the fix if possible?</p>