on master help sign in
Rename Streamly.Internal.Ring.Foreign module
commit9bf3a3e39d3873ffaabb6c4edac590148f6e4b43 authorRanjeet Kumar Ranjan <ranjeetr@composewell.com> dateSat 27 Nov 2021, 18:20 (5 years ago) parent03c154c
5 files changed+8−11
src/Streamly/Internal/Data/Array/Foreign.hs+1−1 src/Streamly/Internal/Data/Pipe.hs+1−1 src/Streamly/Internal/Ring/Foreign.hs → src/Streamly/Internal/Data/Ring/Foreign.hs+4−7 src/Streamly/Internal/Data/Stream/StreamD/Nesting.hs+1−1 streamly.cabal+1−1
src/Streamly/Internal/Data/Array/Foreign.hs+1−1
@@ -148,7 +148,7 @@ import qualified Streamly.Internal.Data.Stream.IsStream.Type as IsStream
148148import qualified Streamly.Internal.Data.Stream.Prelude as P
149149import qualified Streamly.Internal.Data.Stream.StreamD as D
150150import 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
152152
153153-------------------------------------------------------------------------------
154154-- Construction
src/Streamly/Internal/Data/Pipe.hs+1−1
@@ -247,7 +247,7 @@ import Prelude
247247import Streamly.Internal.Data.Pipe.Type
248248 (Pipe(..), PipeState(..), Step(..), zipWith, tee, map, compose)
249249-- import Streamly.Internal.Data.Array.Foreign.Type (Array)
250−-- import Streamly.Internal.Ring.Foreign (Ring)
250+-- import Streamly.Internal.Data.Ring.Foreign (Ring)
251251-- import Streamly.Internal.Data.Stream.Serial (SerialT)
252252-- import Streamly.Internal.Data.Stream.StreamK (IsStream())
253253-- 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 @@
11-- |
2−-- Module : Streamly.Internal.Ring.Foreign
2+-- Module : Streamly.Internal.Data.Ring.Foreign
33-- Copyright : (c) 2019 Composewell Technologies
44-- License : BSD3
55-- Maintainer : streamly@composewell.com
@@ -12,10 +12,8 @@
1212-- XXX Make the implementation similar to mutable array
1313-- XXX Rename this module to Data.RingArray.Storable
1414
15−module Streamly.Internal.Ring.Foreign
16− (
17− -- * Type
18− Ring(..)
15+module Streamly.Internal.Data.Ring.Foreign
16+ ( Ring(..)
1917
2018 -- * Construction
2119 , new
@@ -82,7 +80,6 @@ import GHC.Ptr (Ptr(..))
8280import Streamly.Internal.Data.Array.Foreign.Mut.Type (Array, memcmp)
8381import Streamly.Internal.Data.Fold.Type (Fold(..))
8482import Streamly.Internal.Data.Stream.Serial (SerialT(..))
85−-- import Streamly.Internal.Data.Stream.IsStream.Transform (scan)
8683import Streamly.Internal.Data.Unfold.Type (Unfold(..))
8784import Streamly.Internal.System.IO (unsafeInlineIO)
8885
@@ -92,7 +89,7 @@ import Prelude hiding (length, concat, read)
9289
9390-- $setup
9491-- >>> :m
95−-- >>> import qualified Streamly.Internal.Ring.Foreign as Ring
92+-- >>> import qualified Streamly.Internal.Data.Ring.Foreign as Ring
9693
9794-- | A ring buffer is a mutable array of fixed size. Initially the array is
9895-- 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
172172import qualified Streamly.Internal.Data.Fold as FL
173173import qualified Streamly.Internal.Data.Parser as PR
174174import 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
176176
177177import Streamly.Internal.Data.Stream.StreamD.Type
178178
streamly.cabal+1−1
@@ -485,7 +485,7 @@ library
485485 , Streamly.Internal.Data.Array.Stream.Fold.Foreign
486486
487487 -- Memory storage
488− , Streamly.Internal.Ring.Foreign
488+ , Streamly.Internal.Data.Ring.Foreign
489489 , Streamly.Internal.Data.Ring
490490
491491 -- IOVec (depends on arrays/streams)