words -package:text-zipper -package:cabal-install-solver -package:hledger -package:yesod-paginator package:infinite-list

Split an infinite string into words, by any isSpace symbol. Leading spaces are removed and, as underlined by the return type, repeated spaces are treated as a single delimiter.
Concatenate words together with a space. The function is meant to be a counterpart of with words. If you need to concatenate together Infinite [Char], use intercalate (pure ' ').