@@ -10,7 +10,9 @@
1010module Streamly.Test.Prelude.Common
1111 (
1212 -- * Construction operations
13− constructWithReplicate
13+ constructWithRepeat
14+ , constructWithRepeatM
15+ , constructWithReplicate
1416 , constructWithReplicateM
1517 , constructWithIntFromThenTo
1618#if __GLASGOW_HASKELL__ >= 806
@@ -18,10 +20,18 @@ module Streamly.Test.Prelude.Common
1820#endif
1921 , constructWithIterate
2022 , constructWithIterateM
23+ , constructWithEnumerate
24+ , constructWithEnumerateTo
2125 , constructWithFromIndices
2226 , constructWithFromIndicesM
27+ , constructWithFromList
28+ , constructWithFromListM
29+ , constructWithUnfoldr
2330 , constructWithCons
2431 , constructWithConsM
32+ , constructWithYield
33+ , constructWithYieldM
34+ , simpleOps
2535 -- * Applicative operations
2636 , applicativeOps
2737 , applicativeOps1
@@ -196,12 +206,12 @@ constructWithRepeat, constructWithRepeatM
196206constructWithRepeat = constructWithLenM stream list
197207 where
198208 stream n = S.take n $ S.repeat 1
199− list n = return $ take n $ repeat 1
209+ list n = return $ replicate n 1
200210
201211constructWithRepeatM = constructWithLenM stream list
202212 where
203213 stream n = S.take n $ S.repeatM (return 1)
204− list n = return $ take n $ repeat 1
214+ list n = return $ replicate n 1
205215
206216#if __GLASGOW_HASKELL__ >= 806
207217-- XXX try very small steps close to 0
@@ -408,8 +418,7 @@ constructWithYieldM listT op len =
408418 listEquals (==) (listT strm) list
409419
410420simpleProps ::
411− IsStream t
412− => (Int -> t IO Int)
421+ (Int -> t IO Int)
413422 -> (t IO Int -> SerialT IO Int)
414423 -> Int
415424 -> Property