title: (Beginner peroblem) Check if one list belongs to a list made out of lists
body: <p>So I want to check if a list belongs to the permutations of [1..6]. My idea was this: </p>
  
  <pre><code>&gt;import Data.List
  
  &gt;perm = permutations [1..6]
  
  &gt;funk3 :: [Int] -&gt; Bool
  &gt;funk3 [] = False
  &gt;funk3 (x:xs) = if (x:xs) == perm
  &gt;           then True
  &gt;           else False
  </code></pre>
  
  <p>I know that the following code in incorrect, because I can't compare a list with a list, which contains more lists. But I really don't know how to tell Haskell that my list is only a partial quantity. Pleas help me!</p>