on master help sign in
move Sink module files to Internal
3c8f5b8Harendra Kumar
benchmark/Linear.hs+1−1
@@ -25,7 +25,7 @@ import qualified Streamly.Internal.Prelude as IP
25--import qualified Streamly.Internal.Data.Pipe as Pipe
25--import qualified Streamly.Internal.Data.Pipe as Pipe
26import qualified Streamly.Memory.Array as A
26import qualified Streamly.Memory.Array as A
27import qualified Streamly.Prelude as S
27import qualified Streamly.Prelude as S
28−-- import qualified Streamly.Sink as Sink
28+-- import qualified Streamly.Internal.Data.Sink as Sink
29import Gauge
29import Gauge
30
30
31-------------------------------------------------------------------------------
31-------------------------------------------------------------------------------
src/Streamly/Data/Fold.hs+1−1
@@ -28,7 +28,7 @@
28--
28--
29-- > import qualified Streamly.Internal.Data.Fold as FL
29-- > import qualified Streamly.Internal.Data.Fold as FL
30
30
31−-- Also see the "Streamly.Sink" module that provides specialized left folds
31+-- Also see the "Streamly.Internal.Data.Sink" module that provides specialized left folds
32-- that discard the outputs.
32-- that discard the outputs.
33--
33--
34-- IMPORTANT: keep the signatures consistent with the folds in Streamly.Prelude
34-- IMPORTANT: keep the signatures consistent with the folds in Streamly.Prelude
src/Streamly/Internal/Data/Fold.hs+1−1
@@ -15,7 +15,7 @@
15-- Stability : experimental
15-- Stability : experimental
16-- Portability : GHC
16-- Portability : GHC
17
17
18−-- Also see the "Streamly.Sink" module that provides specialized left folds
18+-- Also see the "Streamly.Internal.Data.Sink" module that provides specialized left folds
19-- that discard the outputs.
19-- that discard the outputs.
20--
20--
21-- IMPORTANT: keep the signatures consistent with the folds in Streamly.Prelude
21-- IMPORTANT: keep the signatures consistent with the folds in Streamly.Prelude
src/Streamly/Sink.hs → src/Streamly/Internal/Data/Sink.hsrenamed+3−3
@@ -1,5 +1,5 @@
1-- |
1-- |
2−-- Module : Streamly.Sink
2+-- Module : Streamly.Internal.Data.Sink
3-- Copyright : (c) 2019 Composewell Technologies
3-- Copyright : (c) 2019 Composewell Technologies
4-- License : BSD3
4-- License : BSD3
5-- Maintainer : harendra.kumar@gmail.com
5-- Maintainer : harendra.kumar@gmail.com
@@ -13,7 +13,7 @@
13-- be used for both pure and monadic computations. Sinks are not applicable to
13-- be used for both pure and monadic computations. Sinks are not applicable to
14-- pure computations.
14-- pure computations.
15
15
16−module Streamly.Sink
16+module Streamly.Internal.Data.Sink
17 (
17 (
18 Sink (..)
18 Sink (..)
19
19
@@ -67,7 +67,7 @@ import Prelude
67 scanl, scanl1, replicate, concatMap, mconcat, foldMap, unzip)
67 scanl, scanl1, replicate, concatMap, mconcat, foldMap, unzip)
68
68
69import Streamly.Internal.Data.Fold.Types (Fold(..))
69import Streamly.Internal.Data.Fold.Types (Fold(..))
70−import Streamly.Sink.Types (Sink(..))
70+import Streamly.Internal.Data.Sink.Types (Sink(..))
71
71
72import qualified Data.Map.Strict as Map
72import qualified Data.Map.Strict as Map
73
73
src/Streamly/Sink/Types.hs → src/Streamly/Internal/Data/Sink/Types.hsrenamed+2−2
@@ -1,12 +1,12 @@
1-- |
1-- |
2−-- Module : Streamly.Sink.Types
2+-- Module : Streamly.Internal.Data.Sink.Types
3-- Copyright : (c) 2019 Composewell Technologies
3-- Copyright : (c) 2019 Composewell Technologies
4-- License : BSD3
4-- License : BSD3
5-- Maintainer : harendra.kumar@gmail.com
5-- Maintainer : harendra.kumar@gmail.com
6-- Stability : experimental
6-- Stability : experimental
7-- Portability : GHC
7-- Portability : GHC
8
8
9−module Streamly.Sink.Types
9+module Streamly.Internal.Data.Sink.Types
10 (
10 (
11 Sink (..)
11 Sink (..)
12 )
12 )
streamly.cabal+2−4
@@ -276,10 +276,6 @@ library
276 , Streamly.Streams.Zip
276 , Streamly.Streams.Zip
277 , Streamly.Streams.Combinators
277 , Streamly.Streams.Combinators
278
278
279− -- Folds
280− , Streamly.Sink.Types
281− , Streamly.Sink
282−
283 , Streamly.FileSystem.IOVec
279 , Streamly.FileSystem.IOVec
284 , Streamly.FileSystem.FDIO
280 , Streamly.FileSystem.FDIO
285 , Streamly.FileSystem.FD
281 , Streamly.FileSystem.FD
@@ -307,6 +303,8 @@ library
307 , Streamly.Internal.Memory.ArrayStream
303 , Streamly.Internal.Memory.ArrayStream
308 , Streamly.Internal.Data.Fold.Types
304 , Streamly.Internal.Data.Fold.Types
309 , Streamly.Internal.Data.Fold
305 , Streamly.Internal.Data.Fold
306+ , Streamly.Internal.Data.Sink.Types
307+ , Streamly.Internal.Data.Sink
310 , Streamly.Internal.Data.Unfold.Types
308 , Streamly.Internal.Data.Unfold.Types
311 , Streamly.Internal.Data.Unfold
309 , Streamly.Internal.Data.Unfold
312 , Streamly.Internal.Data.Pipe.Types
310 , Streamly.Internal.Data.Pipe.Types