@@ -10,7 +10,9 @@
10module Streamly.Test.Prelude.Common
10module Streamly.Test.Prelude.Common
12 -- * Construction operations
12 -- * Construction operations
14+ , constructWithRepeatM
13− constructWithReplicate
15+ , constructWithReplicate
14 , constructWithReplicateM
16 , constructWithReplicateM
15 , constructWithIntFromThenTo
17 , constructWithIntFromThenTo
16#if __GLASGOW_HASKELL__ >= 806
18#if __GLASGOW_HASKELL__ >= 806
@@ -18,10 +20,18 @@ module Streamly.Test.Prelude.Common
19 , constructWithIterate
21 , constructWithIterate
20 , constructWithIterateM
22 , constructWithIterateM
23+ , constructWithEnumerate
24+ , constructWithEnumerateTo
21 , constructWithFromIndices
25 , constructWithFromIndices
22 , constructWithFromIndicesM
26 , constructWithFromIndicesM
27+ , constructWithFromList
28+ , constructWithFromListM
29+ , constructWithUnfoldr
23 , constructWithCons
30 , constructWithCons
24 , constructWithConsM
31 , constructWithConsM
33+ , constructWithYieldM
25 -- * Applicative operations
35 -- * Applicative operations
26 , applicativeOps
36 , applicativeOps
27 , applicativeOps1
37 , applicativeOps1
@@ -196,12 +206,12 @@ constructWithRepeat, constructWithRepeatM
196constructWithRepeat = constructWithLenM stream list
206constructWithRepeat = constructWithLenM stream list
198 stream n = S.take n $ S.repeat 1
208 stream n = S.take n $ S.repeat 1
199− list n = return $ take n $ repeat 1
209+ list n = return $ replicate n 1
201constructWithRepeatM = constructWithLenM stream list
211constructWithRepeatM = constructWithLenM stream list
203 stream n = S.take n $ S.repeatM (return 1)
213 stream n = S.take n $ S.repeatM (return 1)
204− list n = return $ take n $ repeat 1
214+ list n = return $ replicate n 1
206#if __GLASGOW_HASKELL__ >= 806
216#if __GLASGOW_HASKELL__ >= 806
207-- XXX try very small steps close to 0
217-- XXX try very small steps close to 0
@@ -408,8 +418,7 @@ constructWithYieldM listT op len =
408 listEquals (==) (listT strm) list
418 listEquals (==) (listT strm) list
410simpleProps ::
420simpleProps ::
412− => (Int -> t IO Int)
421+ (Int -> t IO Int)
413 -> (t IO Int -> SerialT IO Int)
422 -> (t IO Int -> SerialT IO Int)
415 -> Property
424 -> Property