Plan 9 from Bell Labs’s /usr/web/sources/contrib/fernan/nhc98/src/prelude/List/Sums.hs
module List where sums :: (Num a) => [a] -> [a] sums = scanl (+) 0