HORIZON HASKELLDocslts/ghc-9.14.x45dd5372026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · 45dd537 · 2026-10-11

Modulestreamly-core-0.3.1Haskell2010

Streamly.Internal.Data.RingArray.Generic

  • 2 types
  • 7 values
typetype Ring = RingArray
#

Deprecated. Please use RingArray instead.

Generation

2 declarations
valuecreateOf :: MonadIO m => Int -> Fold m a (RingArray a)
#

Note that it is not safe to return a reference to the mutable RingArray using a scan as the RingArray is continuously getting mutated. You could however copy out the RingArray.

Modification

2 declarations

Conversion

3 declarations
valuetoMutArray :: MonadIO m => Int -> Int -> RingArray a -> m (MutArray a)
#

toMutArray rignHeadAdjustment lengthToRead ring. Convert the ring into a boxed mutable array. Note that the returned MutArray shares the same underlying memory as the RingArray, the user of this API needs to ensure that the ring is not mutated during and after the conversion.