If I understand you correctly, this should do it:
sums :: Num a => [[a]] -> a
sums l = sum [sum p | p <- l]
-Eric
Help,How to calculate the sum of list of lists in Haskell?Please help me,Miranda
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe