title: How to extract all unique pairs of a list in Haskell?
body: <p>I am pretty new to Haskell and I have a question. How can I write a function to return all the unique possible pairs of a list? Like: 
  [1,2,3,4] -> [(1,2),(1,3),(1,4),(2,3),(2,4),(3,4)] </p>