on master help sign in
move Sink module files to Internal
commit3c8f5b8096bec636c4ba3d651ab5bdf47e759fd1 authorHarendra Kumar <harendra.kumar@gmail.com> dateWed 25 Sep 2019, 16:40 (7 years ago) parent1604254
6 files changed+10−12
benchmark/Linear.hs+1−1 src/Streamly/Data/Fold.hs+1−1 src/Streamly/Internal/Data/Fold.hs+1−1 src/Streamly/Sink.hs → src/Streamly/Internal/Data/Sink.hs+3−3 src/Streamly/Sink/Types.hs → src/Streamly/Internal/Data/Sink/Types.hs+2−2 streamly.cabal+2−4
benchmark/Linear.hs+1−1
@@ -25,7 +25,7 @@ import qualified Streamly.Internal.Prelude as IP
2525--import qualified Streamly.Internal.Data.Pipe as Pipe
2626import qualified Streamly.Memory.Array as A
2727import qualified Streamly.Prelude as S
28−-- import qualified Streamly.Sink as Sink
28+-- import qualified Streamly.Internal.Data.Sink as Sink
2929import Gauge
3030
3131-------------------------------------------------------------------------------
src/Streamly/Data/Fold.hs+1−1
@@ -28,7 +28,7 @@
2828--
2929-- > import qualified Streamly.Internal.Data.Fold as FL
3030
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
3232-- that discard the outputs.
3333--
3434-- IMPORTANT: keep the signatures consistent with the folds in Streamly.Prelude
src/Streamly/Internal/Data/Fold.hs+1−1
@@ -15,7 +15,7 @@
1515-- Stability : experimental
1616-- Portability : GHC
1717
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
1919-- that discard the outputs.
2020--
2121-- 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 @@
11-- |
2−-- Module : Streamly.Sink
2+-- Module : Streamly.Internal.Data.Sink
33-- Copyright : (c) 2019 Composewell Technologies
44-- License : BSD3
55-- Maintainer : harendra.kumar@gmail.com
@@ -13,7 +13,7 @@
1313-- be used for both pure and monadic computations. Sinks are not applicable to
1414-- pure computations.
1515
16−module Streamly.Sink
16+module Streamly.Internal.Data.Sink
1717 (
1818 Sink (..)
1919
@@ -67,7 +67,7 @@ import Prelude
6767 scanl, scanl1, replicate, concatMap, mconcat, foldMap, unzip)
6868
6969import Streamly.Internal.Data.Fold.Types (Fold(..))
70−import Streamly.Sink.Types (Sink(..))
70+import Streamly.Internal.Data.Sink.Types (Sink(..))
7171
7272import qualified Data.Map.Strict as Map
7373
src/Streamly/Sink/Types.hs → src/Streamly/Internal/Data/Sink/Types.hsrenamed+2−2
@@ -1,12 +1,12 @@
11-- |
2−-- Module : Streamly.Sink.Types
2+-- Module : Streamly.Internal.Data.Sink.Types
33-- Copyright : (c) 2019 Composewell Technologies
44-- License : BSD3
55-- Maintainer : harendra.kumar@gmail.com
66-- Stability : experimental
77-- Portability : GHC
88
9−module Streamly.Sink.Types
9+module Streamly.Internal.Data.Sink.Types
1010 (
1111 Sink (..)
1212 )
streamly.cabal+2−4
@@ -276,10 +276,6 @@ library
276276 , Streamly.Streams.Zip
277277 , Streamly.Streams.Combinators
278278
279− -- Folds
280− , Streamly.Sink.Types
281− , Streamly.Sink
282−
283279 , Streamly.FileSystem.IOVec
284280 , Streamly.FileSystem.FDIO
285281 , Streamly.FileSystem.FD
@@ -307,6 +303,8 @@ library
307303 , Streamly.Internal.Memory.ArrayStream
308304 , Streamly.Internal.Data.Fold.Types
309305 , Streamly.Internal.Data.Fold
306+ , Streamly.Internal.Data.Sink.Types
307+ , Streamly.Internal.Data.Sink
310308 , Streamly.Internal.Data.Unfold.Types
311309 , Streamly.Internal.Data.Unfold
312310 , Streamly.Internal.Data.Pipe.Types