@@ -16,28 +16,16 @@ module Streamly.Internal.Data.Unfold
18 -- * Unfold Type
18 -- * Unfold Type
19− Step(..)
19+ module Streamly.Internal.Data.Unfold.Type
22 -- * Unfolds
21 -- * Unfolds
23 -- One to one correspondence with
22 -- One to one correspondence with
24 -- "Streamly.Internal.Data.Stream.StreamD.Generate"
23 -- "Streamly.Internal.Data.Stream.StreamD.Generate"
25 -- ** Basic Constructors
24 -- ** Basic Constructors
41 -- ** Generators
29 -- ** Generators
42 -- | Generate a monadic stream from a seed.
30 -- | Generate a monadic stream from a seed.
@@ -49,7 +37,6 @@ module Streamly.Internal.Data.Unfold
49 , module Streamly.Internal.Data.Unfold.Enumeration
37 , module Streamly.Internal.Data.Unfold.Enumeration
51 -- ** From Containers
39 -- ** From Containers
53 , fromListM
40 , fromListM
55 -- ** From Memory
42 -- ** From Memory
@@ -62,11 +49,6 @@ module Streamly.Internal.Data.Unfold
63 -- * Combinators
50 -- * Combinators
64 -- ** Mapping on Input
51 -- ** Mapping on Input
70 , discardFirst
52 , discardFirst
71 , discardSecond
53 , discardSecond
@@ -81,11 +63,6 @@ module Streamly.Internal.Data.Unfold
81 -- input, but that might make the common case more inconvenient.
63 -- input, but that might make the common case more inconvenient.
83 -- ** Mapping on Output
65 -- ** Mapping on Output
89 , postscanlM'
66 , postscanlM'
90 , postscan
67 , postscan
@@ -97,8 +74,6 @@ module Streamly.Internal.Data.Unfold
99 -- ** Filtering
76 -- ** Filtering
104 , filterM
79 , filterM
@@ -106,23 +81,8 @@ module Streamly.Internal.Data.Unfold
106 , dropWhile
81 , dropWhile
107 , dropWhileM
82 , dropWhileM
113 -- ** Cross product
84 -- ** Cross product
117 , joinInnerGeneric
85 , joinInnerGeneric
127 -- ** Resource Management
87 -- ** Resource Management
128 -- | 'bracket' is the most general resource management operation, all other
88 -- | 'bracket' is the most general resource management operation, all other
@@ -160,7 +120,7 @@ import GHC.Types (SPEC(..))
160import Streamly.Internal.Data.Fold.Type (Fold(..))
120import Streamly.Internal.Data.Fold.Type (Fold(..))
161import Streamly.Internal.Data.IOFinalizer
121import Streamly.Internal.Data.IOFinalizer
162 (newIOFinalizer, runIOFinalizer, clearingIOFinalizer)
122 (newIOFinalizer, runIOFinalizer, clearingIOFinalizer)
163−import Streamly.Internal.Data.Stream.StreamD.Type (Stream(..), Step(..))
123+import Streamly.Internal.Data.Stream.StreamD.Type (Stream(..))
164import Streamly.Internal.Data.SVar.Type (defState)
124import Streamly.Internal.Data.SVar.Type (defState)
166import qualified Control.Monad.Catch as MC
126import qualified Control.Monad.Catch as MC