Add INLINE pragma to replicate
commit7c6eac87b09be97b9cffc39d98099cb07369b963
authorHarendra Kumar <harendra.kumar@gmail.com>
dateSun 21 Jul 2019, 04:52 (7 years ago)
parent8a4d965
src/Streamly/Prelude.hs+1
@@ -747,6 +747,7 @@ replicateMSerial n = fromStreamS . S.replicateM n
747747-- Generate a stream of length @n@ by repeating a value @n@ times.
748748--
749749-- @since 0.6.0
750+{-# INLINE_NORMAL replicate #-}
750751replicate :: (IsStream t, Monad m) => Int -> a -> t m a
751752replicate n = fromStreamS . S.replicate n
752753