@@ -16,28 +16,16 @@ module Streamly.Internal.Data.Unfold
1616 -- $setup
1717
1818 -- * Unfold Type
19− Step(..)
20− , Unfold
19+ module Streamly.Internal.Data.Unfold.Type
2120
2221 -- * Unfolds
2322 -- One to one correspondence with
2423 -- "Streamly.Internal.Data.Stream.StreamD.Generate"
2524 -- ** Basic Constructors
26− , mkUnfoldM
27− , mkUnfoldrM
28− , unfoldrM
29− , unfoldr
30− , functionM
31− , function
32− , identity
3325 , nilM
3426 , nil
3527 , consM
3628
37− -- ** From Values
38− , fromEffect
39− , fromPure
40−
4129 -- ** Generators
4230 -- | Generate a monadic stream from a seed.
4331 , repeatM
@@ -49,7 +37,6 @@ module Streamly.Internal.Data.Unfold
4937 , module Streamly.Internal.Data.Unfold.Enumeration
5038
5139 -- ** From Containers
52− , fromList
5340 , fromListM
5441
5542 -- ** From Memory
@@ -62,11 +49,6 @@ module Streamly.Internal.Data.Unfold
6249
6350 -- * Combinators
6451 -- ** Mapping on Input
65− , lmap
66− , lmapM
67− , both
68− , first
69− , second
7052 , discardFirst
7153 , discardSecond
7254 , swap
@@ -81,11 +63,6 @@ module Streamly.Internal.Data.Unfold
8163 -- input, but that might make the common case more inconvenient.
8264
8365 -- ** Mapping on Output
84− , map
85− , map2
86− , mapM
87− , mapM2
88−
8966 , postscanlM'
9067 , postscan
9168 , scan
@@ -97,8 +74,6 @@ module Streamly.Internal.Data.Unfold
9774 , either
9875
9976 -- ** Filtering
100− , takeWhileM
101− , takeWhile
10277 , take
10378 , filter
10479 , filterM
@@ -106,23 +81,8 @@ module Streamly.Internal.Data.Unfold
10681 , dropWhile
10782 , dropWhileM
10883
109− -- ** Zipping
110− , zipWithM
111− , zipWith
112−
11384 -- ** Cross product
114− , crossWithM
115− , crossWith
116− , cross
11785 , joinInnerGeneric
118− , crossApply
119−
120− -- ** Nesting
121− , ConcatState (..)
122− , many
123− , many2
124− , concatMapM
125− , bind
12686
12787 -- ** Resource Management
12888 -- | 'bracket' is the most general resource management operation, all other
@@ -160,7 +120,7 @@ import GHC.Types (SPEC(..))
160120import Streamly.Internal.Data.Fold.Type (Fold(..))
161121import Streamly.Internal.Data.IOFinalizer
162122 (newIOFinalizer, runIOFinalizer, clearingIOFinalizer)
163−import Streamly.Internal.Data.Stream.StreamD.Type (Stream(..), Step(..))
123+import Streamly.Internal.Data.Stream.StreamD.Type (Stream(..))
164124import Streamly.Internal.Data.SVar.Type (defState)
165125
166126import qualified Control.Monad.Catch as MC