@@ -1,5 +1,5 @@
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
15−module Streamly.Internal.Ring.Foreign
15+module Streamly.Internal.Data.Ring.Foreign
18− Ring(..)
16+ ( Ring(..)
20 -- * Construction
18 -- * Construction
@@ -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)
@@ -92,7 +89,7 @@ import Prelude hiding (length, concat, read)
95−-- >>> import qualified Streamly.Internal.Ring.Foreign as Ring
92+-- >>> import qualified Streamly.Internal.Data.Ring.Foreign as Ring
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