iterate -is:exact -package:ghc-lib-parser package:base-compat-batteries

iterate f x produces the infinite sequence of repeated applications of f to x.
iterate f x = x :| [f x, f (f x), ..]