haskell incremental statistics using the foldl library