title: Summing corresponding pairs from two lists within a tuple - in Haskell
body: <p>I have a tuple containing two lists of numbers - ([1,2,3,4],[5,6,7,8])</p>
  
  <p>I need to sum together the corresponding pairs of numbers from each list. ie (1+5), (2+6) etc. Outputting a list ie [6,8,10,12]. It should also work for any amount of elements within the lists (2 lists of 5, 2 lists of 6 etc).</p>
  
  <p>I've been trying a function using "map sum . transpose" but can't seem to get the types correct (as it is within a tuple). I found a piece of code on here which works for a list of lists, but don't know how to do the same for a tuple of lists (is it possible?). When I attempt to change the types of "a" or use Int I compile to type-mismatch errors.</p>
  
  <pre><code>tupSums :: Num a =&gt; [[a]] -&gt; [a]
  tupSums = map sum . transpose
  </code></pre>
  
  <p>I'm fairly new to using Haskell so I don't quite understand the errors I'm getting, sorry if the question seems stupid.</p>