genericReplicate package:ghc-internal

The genericReplicate function is an overloaded version of replicate, which accepts any Integral value as the number of repetitions to make.