on master help sign in
Rename Streamly.Internal.Ring.Foreign module
9bf3a3eRanjeet Kumar Ranjan
src/Streamly/Internal/Data/Array/Foreign.hs+1−1
@@ -148,7 +148,7 @@ import qualified Streamly.Internal.Data.Stream.IsStream.Type as IsStream
148import qualified Streamly.Internal.Data.Stream.Prelude as P
148import qualified Streamly.Internal.Data.Stream.Prelude as P
149import qualified Streamly.Internal.Data.Stream.StreamD as D
149import qualified Streamly.Internal.Data.Stream.StreamD as D
150import qualified Streamly.Internal.Data.Unfold as Unfold
150import qualified Streamly.Internal.Data.Unfold as Unfold
151−import qualified Streamly.Internal.Ring.Foreign as RB
151+import qualified Streamly.Internal.Data.Ring.Foreign as RB
152
152
153-------------------------------------------------------------------------------
153-------------------------------------------------------------------------------
154-- Construction
154-- Construction
src/Streamly/Internal/Data/Pipe.hs+1−1
@@ -247,7 +247,7 @@ import Prelude
247import Streamly.Internal.Data.Pipe.Type
247import Streamly.Internal.Data.Pipe.Type
248 (Pipe(..), PipeState(..), Step(..), zipWith, tee, map, compose)
248 (Pipe(..), PipeState(..), Step(..), zipWith, tee, map, compose)
249-- import Streamly.Internal.Data.Array.Foreign.Type (Array)
249-- import Streamly.Internal.Data.Array.Foreign.Type (Array)
250−-- import Streamly.Internal.Ring.Foreign (Ring)
250+-- import Streamly.Internal.Data.Ring.Foreign (Ring)
251-- import Streamly.Internal.Data.Stream.Serial (SerialT)
251-- import Streamly.Internal.Data.Stream.Serial (SerialT)
252-- import Streamly.Internal.Data.Stream.StreamK (IsStream())
252-- import Streamly.Internal.Data.Stream.StreamK (IsStream())
253-- import Streamly.Internal.Data.Time.Units
253-- import Streamly.Internal.Data.Time.Units
src/Streamly/Internal/Ring/Foreign.hs → src/Streamly/Internal/Data/Ring/Foreign.hsrenamed+4−7
@@ -1,5 +1,5 @@
1-- |
1-- |
2−-- Module : Streamly.Internal.Ring.Foreign
2+-- Module : Streamly.Internal.Data.Ring.Foreign
3-- Copyright : (c) 2019 Composewell Technologies
3-- Copyright : (c) 2019 Composewell Technologies
4-- License : BSD3
4-- License : BSD3
5-- Maintainer : streamly@composewell.com
5-- Maintainer : streamly@composewell.com
@@ -12,10 +12,8 @@
12-- XXX Make the implementation similar to mutable array
12-- XXX Make the implementation similar to mutable array
13-- XXX Rename this module to Data.RingArray.Storable
13-- XXX Rename this module to Data.RingArray.Storable
14
14
15−module Streamly.Internal.Ring.Foreign
15+module Streamly.Internal.Data.Ring.Foreign
16− (
17− -- * Type
18− Ring(..)
16+ ( Ring(..)
19
17
20 -- * Construction
18 -- * Construction
21 , new
19 , new
@@ -82,7 +80,6 @@ import GHC.Ptr (Ptr(..))
82import Streamly.Internal.Data.Array.Foreign.Mut.Type (Array, memcmp)
80import Streamly.Internal.Data.Array.Foreign.Mut.Type (Array, memcmp)
83import Streamly.Internal.Data.Fold.Type (Fold(..))
81import Streamly.Internal.Data.Fold.Type (Fold(..))
84import Streamly.Internal.Data.Stream.Serial (SerialT(..))
82import Streamly.Internal.Data.Stream.Serial (SerialT(..))
85−-- import Streamly.Internal.Data.Stream.IsStream.Transform (scan)
86import Streamly.Internal.Data.Unfold.Type (Unfold(..))
83import Streamly.Internal.Data.Unfold.Type (Unfold(..))
87import Streamly.Internal.System.IO (unsafeInlineIO)
84import Streamly.Internal.System.IO (unsafeInlineIO)
88
85
@@ -92,7 +89,7 @@ import Prelude hiding (length, concat, read)
92
89
93-- $setup
90-- $setup
94-- >>> :m
91-- >>> :m
95−-- >>> import qualified Streamly.Internal.Ring.Foreign as Ring
92+-- >>> import qualified Streamly.Internal.Data.Ring.Foreign as Ring
96
93
97-- | A ring buffer is a mutable array of fixed size. Initially the array is
94-- | A ring buffer is a mutable array of fixed size. Initially the array is
98-- empty, with ringStart pointing at the start of allocated memory. We call the
95-- empty, with ringStart pointing at the start of allocated memory. We call the
src/Streamly/Internal/Data/Stream/StreamD/Nesting.hs+1−1
@@ -172,7 +172,7 @@ import qualified Streamly.Internal.Data.Array.Foreign.Type as A
172import qualified Streamly.Internal.Data.Fold as FL
172import qualified Streamly.Internal.Data.Fold as FL
173import qualified Streamly.Internal.Data.Parser as PR
173import qualified Streamly.Internal.Data.Parser as PR
174import qualified Streamly.Internal.Data.Parser.ParserD as PRD
174import qualified Streamly.Internal.Data.Parser.ParserD as PRD
175−import qualified Streamly.Internal.Ring.Foreign as RB
175+import qualified Streamly.Internal.Data.Ring.Foreign as RB
176
176
177import Streamly.Internal.Data.Stream.StreamD.Type
177import Streamly.Internal.Data.Stream.StreamD.Type
178
178
streamly.cabal+1−1
@@ -485,7 +485,7 @@ library
485 , Streamly.Internal.Data.Array.Stream.Fold.Foreign
485 , Streamly.Internal.Data.Array.Stream.Fold.Foreign
486
486
487 -- Memory storage
487 -- Memory storage
488− , Streamly.Internal.Ring.Foreign
488+ , Streamly.Internal.Data.Ring.Foreign
489 , Streamly.Internal.Data.Ring
489 , Streamly.Internal.Data.Ring
490
490
491 -- IOVec (depends on arrays/streams)
491 -- IOVec (depends on arrays/streams)