title: Check, if list is a sublist of another list
body: <p>I'd like to write a function that checks if one list is a sublist of another list. I wrote this, but it is not working, but I need something like this, I guess. Thanks for help.</p>
  
  <pre><code>subList :: Eq a =&gt; [a] -&gt; [a] -&gt; Bool
  subList _ []    = False
  subList [] _    = True
  subList (x:xs) (y:ys) =   
       x == y    = subList xs ys   
       otherwise = subList (x:xs) ys
  </code></pre>