@@ -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